I'm using WROX's Professional Crystal Reports for Visual Studio .NET 2nd Edition to try to create my first CR.NET application for a major project at work. I've got most things figured out, but have printing and exporting to take care of at this time.
On page 182 there is a description of how to print the report by pushing it into an adobe acrobat plug-in.
After following the instructions to the letter on two separate files, I'm getting the same error message. Can anyone help me overcome this spot? Am I right in thinking that the program using the file at the time of this error is my own program? HELP!!
:(
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveRep ortException: Error in File C:\DOCUME~1\TLENIN~1\ASPNET\LOCALS~1\Temp\temp_156 75fa6-0611-46d1-8cee-760821443e02.rpt: Access to report file denied. Another program may be using it.
Source Error:
Line 55: End With
Line 56:
Line 57: myReport.Export()
Line 58:
Line 59: Response.ClearContent()
Source File: c:\inetpub\wwwroot\web_viewer_print\WebForm1.aspx.
vb Line: 57
Stack Trace:
[LoadSaveReportException: Error in File C:\DOCUME~1\TLENIN~1\ASPNET\LOCALS~1\Temp\temp_156 75fa6-0611-46d1-8cee-760821443e02.rpt:
Access to report file denied. Another program may be using it.]
.I(String , EngineExceptionErrorID )
.D(Int16 , Int32 )
.C(Int16 )
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestContext reqContext)
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export()
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export()
web_viewer_print.WebForm1.PDF_Button_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\web_viewer_print\WebForm1.aspx.
vb:57
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032