network printing problem
-
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)
-
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)
-
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.
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)