Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. network printing problem

network printing problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpsysadmintools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sudhir Mangla
    wrote on last edited by
    #1

    I has an application that can has mamy type of files (word, pdf, ppt, xls,text , htm, jpg, tif and so on ) i as to print those file by rigth click and click print. i use ShellExecuteEx for this. but i also has to show user printer dialog so that he can select printer and can choose other setting. please suggest any solution. my second problem is that. to solve the above problem i use DoPrintDialog to show the dialog and threw devmode struct try to set printer properties i use following functions OpenPrinter GetPrinter SetPrinter these function work i the use is Admin. but fails in case of restricted user does anyone has solution to this problem or any other solution for this problem. Kindly help Sudhir Mangla http://Programmerworld.net (Free books , articles , Source Code and Programming Tools and Utilities)

    D 1 Reply Last reply
    0
    • S Sudhir Mangla

      I has an application that can has mamy type of files (word, pdf, ppt, xls,text , htm, jpg, tif and so on ) i as to print those file by rigth click and click print. i use ShellExecuteEx for this. but i also has to show user printer dialog so that he can select printer and can choose other setting. please suggest any solution. my second problem is that. to solve the above problem i use DoPrintDialog to show the dialog and threw devmode struct try to set printer properties i use following functions OpenPrinter GetPrinter SetPrinter these function work i the use is Admin. but fails in case of restricted user does anyone has solution to this problem or any other solution for this problem. Kindly help Sudhir Mangla http://Programmerworld.net (Free books , articles , Source Code and Programming Tools and Utilities)

      D Offline
      D Offline
      DasdaDAS
      wrote on last edited by
      #2

      Hi, To show the printer Dialog, you can use CPrintDialog class with appropriate values in the constructor. May be this will help u, if u use mfc. Find the job u love and u never have to work for a day in ur life.

      S 1 Reply Last reply
      0
      • D DasdaDAS

        Hi, To show the printer Dialog, you can use CPrintDialog class with appropriate values in the constructor. May be this will help u, if u use mfc. Find the job u love and u never have to work for a day in ur life.

        S Offline
        S Offline
        Sudhir Mangla
        wrote on last edited by
        #3

        i do this but my problem is that I don't has enough rigth when i login as general user to call setprinter Sudhir Mangla http://Programmerworld.net (Free books , articles , Source Code and Programming Tools and Utilities)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups