473,770 Members | 6,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal report Export Error

Anyone have any ideas as to why this is happenning. There are no other
versions of Crystal installed aside from the one that came with vs2003
enterprise.

the error happens when the btnShowPDF_Clic k event is triggered
private void btnShowPDF_Clic k(object sender, System.EventArg s e)

{

string
strFName="c:/inetpub/wwwroot/rglHG/admin/administrator/surveyReport/prtPrvwS
ctnTempQstn/prtPrvwSctnTemp Qstn.pdf";

ExportToDisk(st rFName);

Response.Redire ct("prtPrvwSctn TempQstn.pdf");

}

private void ExportToDisk (string fileName)

{

DiskFileDestina tionOptions diskOpts = new

DiskFileDestina tionOptions();

//set the export format

// Report.ExportOp tions.ExportFor matType = ExportFormatTyp e.RichText;

crstRptPPSctnTe mpQstn1.ExportO ptions.ExportFo rmatType =
ExportFormatTyp e.PortableDocFo rmat;

// Report.ExportOp tions.ExportFor matType = ExportFormatTyp e.WordForWindow s ;

crstRptPPSctnTe mpQstn1.ExportO ptions.ExportDe stinationType =
ExportDestinati onType.DiskFile ;

//set the disk file options

diskOpts.DiskFi leName = fileName;

crstRptPPSctnTe mpQstn1.ExportO ptions.Destinat ionOptions = diskOpts;

crstRptPPSctnTe mpQstn1.Export ();

}

Error in File
C:\DOCUME~1\ITS DEV~1\ASPNET\LO CALS~1\Temp\tem p_ad532a41-baf3-4cb4-b7d0-fff07
43b6782.rpt: Access to report file denied. Another program may be using it.
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:
CrystalDecision s.CrystalReport s.Engine.LoadSa veReportExcepti on: Error in
File
C:\DOCUME~1\ITS DEV~1\ASPNET\LO CALS~1\Temp\tem p_ad532a41-baf3-4cb4-b7d0-fff07
43b6782.rpt: Access to report file denied. Another program may be using it.

Source Error:

Line 96: crstRptPPSctnTe mpQstn1.ExportO ptions.Destinat ionOptions =
diskOpts;
Line 97:
Line 98: crstRptPPSctnTe mpQstn1.Export ();
Line 99: }
Line 100:

Source File:
c:\inetpub\wwwr oot\rglHG\admin \administrator\ surveyReport\pr tPrvwSctnTempQs t
n\pgPPSctnTempQ stn.aspx.cs Line: 98

Stack Trace:

[LoadSaveReportE xception: Error in File
C:\DOCUME~1\ITS DEV~1\ASPNET\LO CALS~1\Temp\tem p_ad532a41-baf3-4cb4-b7d0-fff07
43b6782.rpt:
Access to report file denied. Another program may be using it.]
.F(String  , EngineException ErrorID 
)
.A(Int16 , Int32 )
.@(Int16 )

CrystalDecision s.CrystalReport s.Engine.Format Engine.Export(E xportRequestCon t
ext reqContext)
CrystalDecision s.CrystalReport s.Engine.Format Engine.Export()
CrystalDecision s.CrystalReport s.Engine.Report Document.Export ()

rglHG.admin.adm inistrator.surv eyReport.prtPrv wSctnTempQstn.p gPPSctnTempQstn .
ExportToDisk(St ring fileName) in
c:\inetpub\wwwr oot\rglHG\admin \administrator\ surveyReport\pr tPrvwSctnTempQs t
n\pgPPSctnTempQ stn.aspx.cs:98

rglHG.admin.adm inistrator.surv eyReport.prtPrv wSctnTempQstn.p gPPSctnTempQstn .
btnShowPDF_Clic k(Object sender, EventArgs e) in
c:\inetpub\wwwr oot\rglHG\admin \administrator\ surveyReport\pr tPrvwSctnTempQs t
n\pgPPSctnTempQ stn.aspx.cs:79
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain() +1277

Nov 19 '05 #1
0 1765

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8565
by: DeeCay | last post by:
Dear folks, I was trying to write a .Net web application (using C#) that loads a Crystal Report on server side, export the report in PDF format as a file in the web server, and then serves up the file for clients to download. My code was working so far so good until I added ONE line.
1
2017
by: Stephanie Stowe | last post by:
I am doing a support rotation for our massive ASP app. We use Crystal Reports / Enterprise. By some magic which I am unfamiliar with Crystal Enterprise allows the creation of a report on the server, then the report containing the data can be viewed within the browser using a Crystal Viewer. My experience with Crystal is limited to VB client apps, so this is the limit of my understanding of precisely how this works in the ASP world. Once...
3
3679
by: Colin Graham | last post by:
Error when attempting to export Crystal Report as PDF document asp.net. I get the following error. Error in File C:\DOCUME~1\W2K-AD~1\ASPNET\LOCALS~1\Temp\temp_512d88ae-f721-4860-a57f-2eae219dc1c4.rpt: Invalid export DLL or export format. I have recently created an asp.net deployment application. When i ran the deployment on the server i have had numerous issues but manged to
6
13143
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel spreadsheet. I'm having trouble with my code at the point at which it hits ".ReadRecords" -- the module just runs and runs without generating anything. I've gotten this code to correctly save .rpt files without any data, but not with data, nor have I been...
3
2825
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of my knowledge nothing was changed on the server. Here is the error: Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export DLL or export format.
3
3788
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so why is the bloody thing doing this. The paths have been checked and are correct. The crystal Report is a .rpt file. Not one created in the VS.net IDE but in crystal itself.
19
3882
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
2
14254
by: drisso | last post by:
Hello, I have searched that error on these message boards, msdn and crystaldecisions.com. I found tutorials that showed how to export a crystal report to pdf, but like many others I am getting an error when I actually do the oRpt.Export() command. The error is "Missing parameter field current value." I looked this error up on crystaldecisions.com and they had a patch which I downloaded, installed and rebooted the machine, but still...
1
3562
by: Hardy Wang | last post by:
Hi all, I have a piece of code in my C# console application to export from crystal report files to PDF. For some reports files, I get errors below. I have Crystal Reports 8.5 with service pack installed on my local machine. What is the reason to cause this "Unknown Query Engine Error"? This is a report with 3 sub-reports, is there anything missing in my code to handle this type of reports? Thanks a lot! =====================Error Call...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10001
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.