Delphi 2010 / Intraweb 10
I am attempting to pop up a browser window with a PDF displayed, or at the very least, send a PDF File from the server to the browser. Both of the following code snippets fail because it cannot find the pdf.
For testing purposes, the PDF file is located C:\Temp\records\records.pdf (on the web server). Once I have the function working, the actual PDF files will be located on the web server in another folder.
WebApplication.SendFile('C:\Temp\records\records.pdf', True);
The error returned is "Cannot open file "C:\Temp\records\records.pdf". The system cannot find the specified file.
AddToInitProc('NewWindow("C:\Temp\records\records.pdf", "Records")');
Produces basically the same result.
In addition to a client receiving files from the web server, the client will also need to upload files to the server. I have not found any Intraweb documentation that helps with these specific problems.
Thank you in advance for your help.
Scott Gast
S2 Software, Ltd.
I am attempting to pop up a browser window with a PDF displayed, or at the very least, send a PDF File from the server to the browser. Both of the following code snippets fail because it cannot find the pdf.
For testing purposes, the PDF file is located C:\Temp\records\records.pdf (on the web server). Once I have the function working, the actual PDF files will be located on the web server in another folder.
WebApplication.SendFile('C:\Temp\records\records.pdf', True);
The error returned is "Cannot open file "C:\Temp\records\records.pdf". The system cannot find the specified file.
AddToInitProc('NewWindow("C:\Temp\records\records.pdf", "Records")');
Produces basically the same result.
In addition to a client receiving files from the web server, the client will also need to upload files to the server. I have not found any Intraweb documentation that helps with these specific problems.
Thank you in advance for your help.
Scott Gast
S2 Software, Ltd.
THis same error occurs whether I use OnAsyncClick or OnClick event.