Exporting with Crystal Reports.Net
Author |
Message |
Robert Pettersso #1 / 7
|
 Exporting with Crystal Reports.Net
Hi, I have built an app that generates PDF files using C# and Crystal Reports.Net (I get the same error if I use VB). It works fine on my development computer, but on my production mashine it gets the error: Error in File C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48-8ee1-a656efe5768f. rpt Where is_test is the user that is logged on. I have searched the web and found others with the same error, but no answer to this problem. If I use a viewer to view my report it works fine, its on the Report.Export line that it fails. I have tried to install .Net framework updates and CR.Net updates. I think it is when I export a report that contain subreports when it fails, beacuse I have subreports in my report. But it still works fine if I run it in a viewer, its when I try to export it that it fails. If I use a blank report with just some text it works to export it as well... I have been bangin my head to the desk for quite some time now. If anyone could give me any hint on how to solve this problem I would be very greateful... I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net DataSet. /Robert Pettersson
|
Sat, 22 Oct 2005 15:04:06 GMT |
|
 |
EFernande #2 / 7
|
 Exporting with Crystal Reports.Net
Temp files errors like this one are usually due to wrong user permissions. Check if the user has at least "modify" permission over the directory you are exporting to. With web applications, you must grant "modify" permission to the user aspnet. EFenandes
Quote: > Hi, > I have built an app that generates PDF files using C# and Crystal > Reports.Net (I get the same error if I use VB). > It works fine on my development computer, but on my production mashine it > gets the error: > Error in File
C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48-8ee1-a656efe5768f . Quote: > rpt > Where is_test is the user that is logged on. I have searched the web and > found others with the same > error, but no answer to this problem. > If I use a viewer to view my report it works fine, its on the Report.Export > line that it fails. I have tried to install .Net framework updates and > CR.Net updates. > I think it is when I export a report that contain subreports when it fails, > beacuse I have subreports in my report. But it still works fine if I run it > in a viewer, its when I try to export it that it fails. If I use a blank > report with just some text it works to export it as well... > I have been bangin my head to the desk for quite some time now. If anyone > could give me any hint on how to solve this problem I would be very > greateful... > I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net > DataSet. > /Robert Pettersson
|
Sat, 22 Oct 2005 17:19:29 GMT |
|
 |
Robert Pettersso #3 / 7
|
 Exporting with Crystal Reports.Net
I have put "Everyone" with "Full Controle" on the folder Im exporting to, on a folder Im collecting images from to the report, and on the temp directory its complaining about in my error message. It works on my and my collegues computer, but not on the productionmashine and another collegues mashine. Im reporting from a win-app. Is there any other permissions I should check?? /Robert Quote: > Temp files errors like this one are usually due to wrong user permissions. > Check if the user has at least "modify" permission over the directory you > are exporting to. > With web applications, you must grant "modify" permission to the user > aspnet. > EFenandes
> > Hi, > > I have built an app that generates PDF files using C# and Crystal > > Reports.Net (I get the same error if I use VB). > > It works fine on my development computer, but on my production mashine it > > gets the error: > > Error in File
C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48-8ee1-a656efe5768f . Quote: > > rpt > > Where is_test is the user that is logged on. I have searched the web and > > found others with the same > > error, but no answer to this problem. > > If I use a viewer to view my report it works fine, its on the > Report.Export > > line that it fails. I have tried to install .Net framework updates and > > CR.Net updates. > > I think it is when I export a report that contain subreports when it > fails, > > beacuse I have subreports in my report. But it still works fine if I run > it > > in a viewer, its when I try to export it that it fails. If I use a blank > > report with just some text it works to export it as well... > > I have been bangin my head to the desk for quite some time now. If anyone > > could give me any hint on how to solve this problem I would be very > > greateful... > > I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net > > DataSet. > > /Robert Pettersson
|
Sat, 22 Oct 2005 19:59:57 GMT |
|
 |
EFernande #4 / 7
|
 Exporting with Crystal Reports.Net
I'm sorry if this is a stupid suggestion but, did you check that all machines have the same version of the .NET framework installed?
Quote: > I have put "Everyone" with "Full Controle" on the folder Im exporting to, > on a folder Im collecting images from to the report, and on the temp > directory its > complaining about in my error message. > It works on my and my collegues computer, but not on the productionmashine > and another > collegues mashine. > Im reporting from a win-app. Is there any other permissions I should > check?? > /Robert > > Temp files errors like this one are usually due to wrong user permissions. > > Check if the user has at least "modify" permission over the directory you > > are exporting to. > > With web applications, you must grant "modify" permission to the user > > aspnet. > > EFenandes
> > > Hi, > > > I have built an app that generates PDF files using C# and Crystal > > > Reports.Net (I get the same error if I use VB). > > > It works fine on my development computer, but on my production mashine > it > > > gets the error: > > > Error in File
C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48-8ee1-a656efe5768f . Quote: > > > rpt > > > Where is_test is the user that is logged on. I have searched the web and > > > found others with the same > > > error, but no answer to this problem. > > > If I use a viewer to view my report it works fine, its on the > > Report.Export > > > line that it fails. I have tried to install .Net framework updates and > > > CR.Net updates. > > > I think it is when I export a report that contain subreports when it > > fails, > > > beacuse I have subreports in my report. But it still works fine if I run > > it > > > in a viewer, its when I try to export it that it fails. If I use a blank > > > report with just some text it works to export it as well... > > > I have been bangin my head to the desk for quite some time now. If > anyone > > > could give me any hint on how to solve this problem I would be very > > > greateful... > > > I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net > > > DataSet. > > > /Robert Pettersson
|
Sat, 22 Oct 2005 22:10:37 GMT |
|
 |
booly #5 / 7
|
 Exporting with Crystal Reports.Net
If you only receive the error when exporting a report containing a subreport on a non-development machine, then you need the latest deployment updates available at the Crystal Decisions web site. If this does not fix the error, as a test, try using an ODBC datasource(s) for your report as opposed to an ADO.NET datasource. Quote: >-----Original Message----- >Hi, >I have built an app that generates PDF files using C# and Crystal >Reports.Net (I get the same error if I use VB). >It works fine on my development computer, but on my
production mashine it Quote: >gets the error: >Error in File >C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48- 8ee1-a656efe5768f. >rpt >Where is_test is the user that is logged on. I have
searched the web and Quote: >found others with the same >error, but no answer to this problem. >If I use a viewer to view my report it works fine, its on the Report.Export >line that it fails. I have tried to install .Net
framework updates and Quote: >CR.Net updates. >I think it is when I export a report that contain
subreports when it fails, Quote: >beacuse I have subreports in my report. But it still
works fine if I run it Quote: >in a viewer, its when I try to export it that it fails. If I use a blank >report with just some text it works to export it as well... >I have been bangin my head to the desk for quite some time now. If anyone >could give me any hint on how to solve this problem I would be very >greateful... >I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net >DataSet. >/Robert Pettersson >.
|
Sun, 23 Oct 2005 02:33:59 GMT |
|
 |
Robert Pettersso #6 / 7
|
 Exporting with Crystal Reports.Net
Thats ok... Checked it and updated to the latest version. It does not seem to have any affect. Also installed a CR.Net update with the same result. Shouldnt the error with the temp report files be more documented. Cant find anything about it from either Crystal or Microsoft... Anyone have any other suggestions?? Im getting desperate... =) /Robert
Quote: > I'm sorry if this is a stupid suggestion but, did you check that all > machines have the same version of the .NET framework installed?
> > I have put "Everyone" with "Full Controle" on the folder Im exporting to, > > on a folder Im collecting images from to the report, and on the temp > > directory its > > complaining about in my error message. > > It works on my and my collegues computer, but not on the productionmashine > > and another > > collegues mashine. > > Im reporting from a win-app. Is there any other permissions I should > > check?? > > /Robert > > > Temp files errors like this one are usually due to wrong user > permissions. > > > Check if the user has at least "modify" permission over the directory > you > > > are exporting to. > > > With web applications, you must grant "modify" permission to the user > > > aspnet. > > > EFenandes
> > > > Hi, > > > > I have built an app that generates PDF files using C# and Crystal > > > > Reports.Net (I get the same error if I use VB). > > > > It works fine on my development computer, but on my production mashine > > it > > > > gets the error: > > > > Error in File
C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48-8ee1-a656efe5768f . Quote: > > > > rpt > > > > Where is_test is the user that is logged on. I have searched the web > and > > > > found others with the same > > > > error, but no answer to this problem. > > > > If I use a viewer to view my report it works fine, its on the > > > Report.Export > > > > line that it fails. I have tried to install .Net framework updates and > > > > CR.Net updates. > > > > I think it is when I export a report that contain subreports when it > > > fails, > > > > beacuse I have subreports in my report. But it still works fine if I > run > > > it > > > > in a viewer, its when I try to export it that it fails. If I use a > blank > > > > report with just some text it works to export it as well... > > > > I have been bangin my head to the desk for quite some time now. If > > anyone > > > > could give me any hint on how to solve this problem I would be very > > > > greateful... > > > > I use: Windows 2000, C# or VB.Net, CR.Net that report from a ADO.Net > > > > DataSet. > > > > /Robert Pettersson
|
Sun, 23 Oct 2005 16:27:46 GMT |
|
 |
David Unio #7 / 7
|
 Exporting with Crystal Reports.Net
Hi This 'Was' working fine last week (have another problem, will post) so I think the export part is OK. === rep.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.WordForWindows; CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new CrystalDecisions.Shared.DiskFileDestinationOptions(); DiskOpts.DiskFileName = ... (whatever) rep.ExportOptions.DestinationOptions = DiskOpts; rep.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile; // Main Report rep.Database.Tables["xxx"].SetDataSource(xxx,"xxx"); ... (for each table) CrystalDecisions.CrystalReports.Engine.ReportDocument crSub1 = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); crSub1 = rep.OpenSubreport("Subname"); crSub1.Database.Tables["xxx"].SetDataSource(xxx,"xxx"); ...(for each table used here) rep.Export();
Quote: > If you only receive the error when exporting a report > containing a subreport on a non-development machine, then > you need the latest deployment updates available at the > Crystal Decisions web site. > If this does not fix the error, as a test, try using an > ODBC datasource(s) for your report as opposed to an > ADO.NET datasource. > >-----Original Message----- > >Hi, > >I have built an app that generates PDF files using C# and > Crystal > >Reports.Net (I get the same error if I use VB). > >It works fine on my development computer, but on my > production mashine it > >gets the error: > >Error in File > >C:\DOCUME~1\is_test\LOCALS~1\Temp\temp_7f023fee-f798-4a48- > 8ee1-a656efe5768f. > >rpt > >Where is_test is the user that is logged on. I have > searched the web and > >found others with the same > >error, but no answer to this problem. > >If I use a viewer to view my report it works fine, its on > the Report.Export > >line that it fails. I have tried to install .Net > framework updates and > >CR.Net updates. > >I think it is when I export a report that contain > subreports when it fails, > >beacuse I have subreports in my report. But it still > works fine if I run it > >in a viewer, its when I try to export it that it fails. > If I use a blank > >report with just some text it works to export it as > well... > >I have been bangin my head to the desk for quite some > time now. If anyone > >could give me any hint on how to solve this problem I > would be very > >greateful... > >I use: Windows 2000, C# or VB.Net, CR.Net that report > from a ADO.Net > >DataSet. > >/Robert Pettersson > >.
|
Sat, 10 Dec 2005 01:22:26 GMT |
|
|
|