Greg,
Thank you so much. The printto in the shell execute is working beautifully.
Very very nice...
Would you know, off hand, if I can I pass the tray as well?
>>It seems to be working if I close adobe and then set the windows system default printer.
>>
>>How do you suggest I accomplish this task?
>>
>> I need to print to a bullzip pdf printer first to create a pdf.
>>Then, I need to switch to a selected printer to print a hard copy of the pdf.
>>
>>
>>
>
>Debra,
>
>I have not followed the whole thread - but try this
>
>- no need to change the default windows printer
>- pass the printer name to ShellExecute as a parameter
>
>
> declare integer GetDesktopWindow IN win32api
>
> Declare long ShellExecute in shell32.dll ;
> long hwnd, ;
> string lpszOp, ;
> string lpszFile, ;
> string lpszParams, ;
> string lpszDir, ;
> long nShowCmd
>
> local pdfFile, printerName
> pdfFile = 'd:\tmp\0xx.pdf'
> pdfFile = 'd:\tmp\aaa.pdf'
>
> printerName = 'HP Photosmart C6100 series'
>
>
>
>
> ?ShellExecute(GetDesktopWindow(), 'printto', m.pdfFile, '"' + m.printerName + '"', null, 7)
>