Hi,
I'm generating a pdf file from a report and then sending attaching it and sending it out by email.
The thing is that everything works except that the pdf file is not build fast enough to be attached by email and sent out. How can I do make this work?
Thanks.
0
Comments
Use the SLEEP command - you could have a loop until the file EXISTS and SLEEP in the loop.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks. Can you post me a sample just on how to use it. Thanks again.
Off the top of my head try:
You can experiment with the values to suit you.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Shell(ProgrammcallToConvertPDF)
to
if shell(ProgrammcallToConvertPDF) = 0 then;
the second Statement waits till the shell is executed, the first just executes (fire & forget).
Do you know where i can download this ghostscript. Do you know if it works on vista?
Thanks!