how to create a new printer and add to the list
-
Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli
-
Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli
Your application should not be installing printers at all. This is either a pre-req that needs to be installed prior to running your app, or possibly even something that is installed with your application, but should not be done at run-time. There are plenty of cases where users may not be able to install printers. Since a Windows app runs as the user, it has no more permissions to the system that the user does.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli
-
Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli
Thanks to all of you for your suggestions. Ok..I think I should provide enough details to clear the scenario. I need to create a custom "print to pdf" driver that when installed on a machine would appear in the print dialog of any application. When the users click on the print button, they will have an option to choose this printer. When they choose this printer, it will prompt for a location and then save files there as a PDF file. Hope that helps. Looking forward for your replies. Thanks -- Palli
-
Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli
Further research into the topic has cleared the picture more. I need to develop a virtual printer that would be available to the user in the print list option of any application like word etc, when the user will select the virtual printer, it will ask for the location to save the file and would then save the file on the specified location as a PDF file. Any suggestions so that I can start working would be highly appreciable. Thanks
-
Further research into the topic has cleared the picture more. I need to develop a virtual printer that would be available to the user in the print list option of any application like word etc, when the user will select the virtual printer, it will ask for the location to save the file and would then save the file on the specified location as a PDF file. Any suggestions so that I can start working would be highly appreciable. Thanks
Hello everyone.. I have managed to add a virtual printer to the printer list. And now the task is to create a PDF from the added printer. Any suggestions regarding ? Could I get the drivers from somewhere for the printer that creates a PDF of the document ? Thanks -- Palli
-
Hello everyone.. I have managed to add a virtual printer to the printer list. And now the task is to create a PDF from the added printer. Any suggestions regarding ? Could I get the drivers from somewhere for the printer that creates a PDF of the document ? Thanks -- Palli
there is no direct method of doing what you want to achieve in C# To begin with, you'll need to write your own custom printer driver for your virtual printer to use. You will need to do a lot of api wrapping, as there is no interface in C# to help you here. Your best bet is to start looking into the Windows Driver Development kit and see if you can find out exactly what you need to do. (and expect to be writing a c++ wrapper too I guess)