I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOC ALS~1\Temp\temp _0c6b2c59-df8a-4b26-a570-a2189ee212ac.rp t: Access to report file denied. Another program may be using it."
It works with other reports but not this one.
Code using for export:
Dim myExportOptions As CrystalDecision s.Shared.Export Options
Dim myDiskFileDesti nationOptions As CrystalDecision s.Shared.DiskFi leDestinationOp tions
Dim myExportFile As String
myExportFile = "c:\inetpub\www root\" & Session.Session ID.ToString & ".pdf"
myDiskFileDesti nationOptions = New CrystalDecision s.Shared.DiskFi leDestinationOp tions
myDiskFileDesti nationOptions.D iskFileName = myExportFile
myExportOptions = crystalReport31 .ExportOptions
With myExportOptions
.DestinationOpt ions = myDiskFileDesti nationOptions
.ExportDestinat ionType = .ExportDestinat ionType.DiskFil e
.ExportFormatTy pe = .ExportFormatTy pe.PortableDocF ormat
End With
crystalReport31 .Export()
Thanks in advance
Mandar 4 3739
On 7/28/2004 11:18 AM, Mandar wrote: I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOC ALS~1\Temp\temp _0c6b2c59-df8a-4b26-a570-a2189ee212ac.rp t: Access to report file denied. Another program may be using it."
It works with other reports but not this one.
Code using for export: Dim myExportOptions As CrystalDecision s.Shared.Export Options Dim myDiskFileDesti nationOptions As CrystalDecision s.Shared.DiskFi leDestinationOp tions Dim myExportFile As String
myExportFile = "c:\inetpub\www root\" & Session.Session ID.ToString & ".pdf" myDiskFileDesti nationOptions = New CrystalDecision s.Shared.DiskFi leDestinationOp tions myDiskFileDesti nationOptions.D iskFileName = myExportFile myExportOptions = crystalReport31 .ExportOptions With myExportOptions .DestinationOpt ions = myDiskFileDesti nationOptions .ExportDestinat ionType = .ExportDestinat ionType.DiskFil e .ExportFormatTy pe = .ExportFormatTy pe.PortableDocF ormat End With crystalReport31 .Export()
Thanks in advance Mandar
When you load the report (crystalReport3 1.Load(..)), there's an overload
for that method, that has a parameter to indicate how to open the report: http://msdn.microsoft.com/library/de...ationtopic.asp
if you use the temp copy option, it should not lock the report when you
open it, which is what I think is happening.
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
On 7/28/2004 12:24 PM, Mandar wrote: Thanks Craig for reply by default it opens as temporary copy. it does not give any error if i try word document instead of pdf. i m not using load() anywhere Regards
"Craig Deelsnyder" wrote:
On 7/28/2004 11:18 AM, Mandar wrote:
I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOC ALS~1\Temp\temp _0c6b2c59-df8a-4b26-a570-a2189ee212ac.rp t: Access to report file denied. Another program may be using it."
It works with other reports but not this one.
Code using for export: Dim myExportOptions As CrystalDecision s.Shared.Export Options Dim myDiskFileDesti nationOptions As CrystalDecision s.Shared.DiskFi leDestinationOp tions Dim myExportFile As String
myExportFile = "c:\inetpub\www root\" & Session.Session ID.ToString & ".pdf" myDiskFileDesti nationOptions = New CrystalDecision s.Shared.DiskFi leDestinationOp tions myDiskFileDesti nationOptions.D iskFileName = myExportFile myExportOptions = crystalReport31 .ExportOptions With myExportOptions .DestinationOpt ions = myDiskFileDesti nationOptions .ExportDestinat ionType = .ExportDestinat ionType.DiskFil e .ExportFormatTy pe = .ExportFormatTy pe.PortableDocF ormat End With crystalReport31 .Export()
Thanks in advance Mandar
When you load the report (crystalReport3 1.Load(..)), there's an overload for that method, that has a parameter to indicate how to open the report:
http://msdn.microsoft.com/library/de...ationtopic.asp
if you use the temp copy option, it should not lock the report when you open it, which is what I think is happening.
-- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET
sorry, that's all I had; it's been awhile since I've done CR, and I
thought this fixed my problem like this back then. I didn't notice by
default that was set. You might try the CR forums at http://asp.net or
the CR developer zone at: http://www.businessobjects.com/products/dev_zone/
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Hi Mandar,
In addition to Craig's suggestion. You can also ask the Crystal Report
service support through the guides in the following kb article:
#How To Get Help with Crystal Reports - International and U.S. http://support.microsoft.com/?id=100368
Thanks.
Thanks.
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
3 steps cleared this up for me.
1) You need to set in InetMgr the folder you are exporting to to be Write
enabled.
2) Also in InetMgr, under the porperties for your export folder, you need to
set the Application Pool setting to: MSSharePointApp Pool.
3) And finally, you need to set, under Windows Explorer, the security level
for the export folder to Everyone=Full Control.
This should clear you up....did for me when I had this *exact* same problem.
But don't take just my word for it: http://dotnetjunkies.com/WebLog/rich.../24/14362.aspx
-- Andrew
"Mandar" <sh***@nospam.n ospam> wrote in message
news:CA******** *************** ***********@mic rosoft.com... I am trying to export crystal report to pdf. but i am getting folloing
error: "Error in File
C:\DOCUME~1\MKM-BA~1\ASPNET\LOC ALS~1\Temp\temp _0c6b2c59-df8a-4b26-a570-a2189
ee212ac.rpt: Access to report file denied. Another program may be using it." It works with other reports but not this one.
Code using for export: Dim myExportOptions As CrystalDecision s.Shared.Export Options Dim myDiskFileDesti nationOptions As
CrystalDecision s.Shared.DiskFi leDestinationOp tions Dim myExportFile As String
myExportFile = "c:\inetpub\www root\" & Session.Session ID.ToString
& ".pdf" myDiskFileDesti nationOptions = New
CrystalDecision s.Shared.DiskFi leDestinationOp tions myDiskFileDesti nationOptions.D iskFileName = myExportFile myExportOptions = crystalReport31 .ExportOptions With myExportOptions .DestinationOpt ions = myDiskFileDesti nationOptions .ExportDestinat ionType = .ExportDestinat ionType.DiskFil e .ExportFormatTy pe = .ExportFormatTy pe.PortableDocF ormat End With crystalReport31 .Export()
Thanks in advance Mandar This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim Jones |
last post by:
Hey all,
I am trying to try get a crytal report running properly. A "Hello World"
report that does not add criteria to the record selection formula of the
report (either in the development tool, or in the code) works fine.
However, when I try to add any parameter through the record selection
formula and/or the report parameters method,...
|
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...
|
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...
|
by: John |
last post by:
Hi. Sir:
Does anyboday know how to export subreport data using the export button
in crystal report tool bar?
We have a main report including a on-demand report. When we click the
on-demand button, the page show the subreport detail, that's fine. but when
i click the export button on crystal report tool bar, the page automatically
go to the...
|
by: suicidaltendencies |
last post by:
I'm able to view the report, but when I click the button on the webpage that shows the report to export into a different format it gives me an error on Export. Any help would be great
I keep getting the following error
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review...
| |
by: Leonard Danao |
last post by:
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_Click event is triggered
private void btnShowPDF_Click(object sender, System.EventArgs e)
{
string
|
by: ElanKathir .S.N |
last post by:
Hollo Guys,
I want to export my crystal reports (Crystal Report 9.0) to word format
using visual basic 6.0. Means I want to export the reports with out
preview.
Now showing report using CRViwer9 object, but in other case I want to
export without preview.
Which object and method for direct export??
|
by: Henry |
last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that
uses MS Access 2000 as its database. I can export reports that have no
linked sub reports for printing. However, I'm unable to export reports
that have linked subreports. I receive (a "Missing parameter field
current value") on the following statement:
...
|
by: Brad |
last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing
IIS7....but it works just fine in visual studio's cassini web server. And
if I create a web form and use the crystal reports web viewer, view the
report and then export from the viewer it also works fine (IIS7 and
cassini). And I should note this all works fine in IIS6...
|
by: acextreme |
last post by:
Hi all,
I have a big problem when I try to export from Crystal Report 8.5 in .pdf from VB6. I use a database made in SQL Server 2000.
The problem is that all the decimal fields in database are truncated in pdf when I export from VB6. For example, If I have 75.45, it will return 75.00. If I export the data direct from Crystal Report, it works...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |