Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How so save PDF on local drive. 2

Status
Not open for further replies.

Senseial

Programmer
Feb 11, 2004
40
CA
Hello

Can someone help me. Using Visual .Net and Crystal Reports 10. I create report and save it as PDF file so that it can be viewed from any place and printed to any local printer. Now the problem here is how do I save this PFD file to a local hard drive and print to a local printer. Now it always gets saveed on the server. This is not the way I want. I want to save this PDF to any client that this application has been run on.
Is there a code on how this should be done. I am losing my mind here.

Thanks a lot
Alex
 
to do this, the client needs to download the PDF to his computer. there is no way to force or do this without the users knowing or consent. therefore, you need to have alink on your page that points to the desired PDF, and when the user clicks on it, he can download it, or see it online. another way to automatically pop-up the download window is to use a bit of javascript in your page:
Code:
window.open("path_to_pdf", "PDFWindow);
 
Ok, Now I have a problem with "path_to_pdf".
Can you give me an example of it. This is not on the internet but on the intranet. So if I am looking at this app logges through VPN I give the address. File gets generated on the C:\IWMSPDF.rpt. what is the path now??
I am local looging at the C:\IWMSPDF.rpt on the server. I tried few paths non worked.

Thanks
 
the path_to_pdf is a path on the local HDD of the server or on a LAN of the server to which IIS has access...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top