Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi!!

I wanted to create a temporary pdf file based on the results, and allow user with a choice to either save or discard the file.

I know how to create pdf files but I wanted to know how to create "temporary pdf file".

[Working on some desktop application]
Posted

1 solution

Hi, one option is to generate the PDF file to the system temp folder and ask the user either to save or discard.

Another option is to generate the PDF file to a folder (specified in the application by default, which the app has read/write/delete access) and ask the user either to save or discard. Delete the file from that location after user saves / discards the file.
 
Share this answer
 
v2
Comments
coolloud13 21-Apr-12 15:01pm    
yes,, that okkay,,,
But the thing that I don't understand is "HOW WILL I\PROGRAM WILL KNOW THAT THE USER HAS STORED THE FILE??"
This is what I was asking for!

Thanks!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900