MODI and automated printing without manual intervention  
Author Message
Vivek Arora





PostPosted: ISV Open Discussions, MODI and automated printing without manual intervention Top

Hi All,

I would like to print a file to the MODI virtual printer without any manual intervention. My problem is the output file dialog that appears when I fire the print command from the associated application.

However, Word documents could be printed to MODI without any manual intervention by using the PrintOut() method of the Word Application object and specifying the output filename parameter. If Word can pass the output filename to MODI in an automated fashion, my application should be able to as well! What could Word be doing to pass the output filename to the MODI Image Writer port

Is there a registry key or some API for the MODI Image Writer port so that I could achieve the same using C#

Thanks in advance!!!

Viv



Microsoft ISV Community Center Forums2  
 
 
DanielEgan





PostPosted: ISV Open Discussions, MODI and automated printing without manual intervention Top

I am searching for some ideas for an issue I have. I believe when using office applications and using the printout() method you must change the activeprinter. I am using this for Excel and determined that the printer and port need to be passed in the format "Printer on Port:" The ports can be found at \HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices in the value data. The format is similar to winspool,Ne00. You may have to use this type of format when passing the information.

I hope this helps



 
 
terilarry1





PostPosted: ISV Open Discussions, MODI and automated printing without manual intervention Top

This will help you. forums.microsoft.com/MSDN/ShowPost.aspx PostID=322303