KarenLloyd
Programmer
Hi Gurus
With reference to so many threads (thread184-698845, thread184-1485500 and thread184-1485500 to name but a few...) I needed to print a PDF from VFP6 and I thank you for your tips for ShellExecute, which I am finding increasingly useful for different things - file case naming etc.
I have had to pull together a few different elements so that I can print a VFP6 report (a) to the desired printer, (b) to a PDF and then (c) using PDFTK to watermark the PDF. (I know that I should look to VFP9 for these features such as watermarking... but I also need to figure out the installation side of VFP9 - such as is it a DLL distribution or an each machine registry issue...) Anyway - both the invoice report FRX and the filecopy/watermarked PDF need to go to a printer that is not the default printer.
Bearing in mind that I am still in VFP6 - please can you give me examples of how to manage this, even if I have to add in delay time to do so. It must need to set the windows default printer in another way - as SET PRINTER TO NAME ThePrinterName is not doing the job. The VFP report goes to the right one, but the PDF sent by ShellExecute still goes to the original default printer - even though SET("Printer",3) has recognised the change. It's mildly frustrating so far...
Sorry about the long winded post - I would really be grateful for any advice you can offer...
Thanks
Karen
With reference to so many threads (thread184-698845, thread184-1485500 and thread184-1485500 to name but a few...) I needed to print a PDF from VFP6 and I thank you for your tips for ShellExecute, which I am finding increasingly useful for different things - file case naming etc.
I have had to pull together a few different elements so that I can print a VFP6 report (a) to the desired printer, (b) to a PDF and then (c) using PDFTK to watermark the PDF. (I know that I should look to VFP9 for these features such as watermarking... but I also need to figure out the installation side of VFP9 - such as is it a DLL distribution or an each machine registry issue...) Anyway - both the invoice report FRX and the filecopy/watermarked PDF need to go to a printer that is not the default printer.
Bearing in mind that I am still in VFP6 - please can you give me examples of how to manage this, even if I have to add in delay time to do so. It must need to set the windows default printer in another way - as SET PRINTER TO NAME ThePrinterName is not doing the job. The VFP report goes to the right one, but the PDF sent by ShellExecute still goes to the original default printer - even though SET("Printer",3) has recognised the change. It's mildly frustrating so far...
Sorry about the long winded post - I would really be grateful for any advice you can offer...
Thanks
Karen