Page 1 of 1

Generated PDF cannot be open.

Posted: Thu Sep 06, 2007 9:13 am
by fkmfkm
I am using this line to generate as PDF

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, report)

It has been fine for the past week or so..

But lately I am getting this error when I am trying to open the generated PDF. Even existing report failed to work.

"There was an error opening this document. This file cannot be found.". This is a message box from within the Acrobat Reader.

Generated PDF cannot be open.

Posted: Thu Sep 06, 2007 9:26 am
by Edward
Please send to us mdc file of the rendered report. You can save into this format a rendered report from a preview window via third button from the left. Also into this format you can save a rendered report via the following code:

Code: Select all

Report.Render(false);
report.SaveDocument("myreport.mdc");
Thank you.

Generated PDF cannot be open.

Posted: Thu Sep 06, 2007 10:12 am
by fkmfkm
Edward,

I found the problem. My IE cache is full (i hope so...i need to test more)...(i found out when gmail alert me about this when I am trying to send you the file). After i clear the cache now its ok ...will test more and let you know.

Have to always remember this ...in case I or anyone run into this..

Anyway thanks again.

Generated PDF cannot be open.

Posted: Thu Sep 06, 2007 11:07 am
by Vital
No problem.