berthe
16th December 2004, 12:52
Hi,
I want to create a pdf file with WindowsXP, without user interaction.
- I created a new Device Data with Devicetype = Windows printer and Device Queue = CutePDF Writer.
- In my 4GL script I used tccom.dll0010.interact.with.device to use this new device without user interaction
This works fine: The report is printed to the pdf-printer.
The only problem is that I can not specify the output file. The user is promped with a Save As window. This is not my intention... The file should be saved to file specified in the script.
I tried to create the .pdf file in the script using app_start("c:\Program Files\GNUGS\gswin32c.exe @file1 @file2", "c:\temp\","","",""), but this doesn't work either. I think something is wrong with the function parameters in wait.and.activate("ttstpconv", arg1, tmp.file, "POSTSCRIPT", arg2).
What should i use as arg1 and arg2?
Can anyone help?
Thanks in advance!
Berthe
I want to create a pdf file with WindowsXP, without user interaction.
- I created a new Device Data with Devicetype = Windows printer and Device Queue = CutePDF Writer.
- In my 4GL script I used tccom.dll0010.interact.with.device to use this new device without user interaction
This works fine: The report is printed to the pdf-printer.
The only problem is that I can not specify the output file. The user is promped with a Save As window. This is not my intention... The file should be saved to file specified in the script.
I tried to create the .pdf file in the script using app_start("c:\Program Files\GNUGS\gswin32c.exe @file1 @file2", "c:\temp\","","",""), but this doesn't work either. I think something is wrong with the function parameters in wait.and.activate("ttstpconv", arg1, tmp.file, "POSTSCRIPT", arg2).
What should i use as arg1 and arg2?
Can anyone help?
Thanks in advance!
Berthe