I need to be able to print to PDF but for the pdf to automatically save to a users desktop and for the PDF to automatically launch.
I am using the following code:
Code: Select all
put field "CompanyName" & field "Reference" card 2 & ".pdf" into it
replace " " with empty in it
open printing to pdf it & ".pdf"
put it & ".pdf" into target_file
repeat for each item i in Cards2print
print Card i
end repeat
close printing
launch document target_file
Could some help with my code so that the PDF automatically saves to the desktop?
Your help is most appreciated!
Daniel