Hi,
Could any one give a sample example on how to export crystal report called
"MyReport.r pt" to PDF using Crystal Report !!?
Thanks 5 25026
Hi,
ReportDocument r = new ReportDocument( );
r.Load( reportURL );
// set the parameters/ the datasource, etc,etc
r.SetDataSource ( GetaDataSet() );
r.ExportToDisk( ExportTypeForma t.PortableDocFo rmat , "path to file );
--
Ignacio Machin
machin AT laceupsolutions .com
"Badis" <Ba***@discussi ons.microsoft.c omwrote in message
news:CA******** *************** ***********@mic rosoft.com...
Hi,
Could any one give a sample example on how to export crystal report called
"MyReport.r pt" to PDF using Crystal Report !!?
Thanks
Thank U very mutch Ignacio and this code is working fine but I didn't using
the " r.SetDataSource ( GetaDataSet() );" line of code because I don't know
what it does!!?
So does it add a new data to my Report file!!?
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
ReportDocument r = new ReportDocument( );
r.Load( reportURL );
// set the parameters/ the datasource, etc,etc
r.SetDataSource ( GetaDataSet() );
r.ExportToDisk( ExportTypeForma t.PortableDocFo rmat , "path to file );
--
Ignacio Machin
machin AT laceupsolutions .com
"Badis" <Ba***@discussi ons.microsoft.c omwrote in message
news:CA******** *************** ***********@mic rosoft.com...
Hi,
Could any one give a sample example on how to export crystal report called
"MyReport.r pt" to PDF using Crystal Report !!?
Thanks
That line of code, that cited Ignacio, just bind your data to report to show
report content.
SetDataSource can take different data sources, including DataSet.
See MSDN for more details about this method
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
"Badis" wrote:
Thank U very mutch Ignacio and this code is working fine but I didn't using
the " r.SetDataSource ( GetaDataSet() );" line of code because I don't know
what it does!!?
So does it add a new data to my Report file!!?
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
ReportDocument r = new ReportDocument( );
r.Load( reportURL );
// set the parameters/ the datasource, etc,etc
r.SetDataSource ( GetaDataSet() );
r.ExportToDisk( ExportTypeForma t.PortableDocFo rmat , "path to file );
--
Ignacio Machin
machin AT laceupsolutions .com
"Badis" <Ba***@discussi ons.microsoft.c omwrote in message
news:CA******** *************** ***********@mic rosoft.com...
Hi,
>
Could any one give a sample example on how to export crystal report called
"MyReport.r pt" to PDF using Crystal Report !!?
>
>
Thanks
>
Ignacio Machin ( .NET/ C# MVP ) schrieb:
Hi,
ReportDocument r = new ReportDocument( );
r.Load( reportURL );
// set the parameters/ the datasource, etc,etc
r.SetDataSource ( GetaDataSet() );
r.ExportToDisk( ExportTypeForma t.PortableDocFo rmat , "path to file );
Hi,
a little hint!
I had on some customer-pcs problems with this ExportToDisk(). Sometimes
i got error messages, that a process can´t start in the background.
After exporting the reports in a MemoryWriter and writing this stream to
a file, the problems a gone.
Greetings from germany
Stephan
This bit of code is good if I already have the report, do U know how can I
generate a new report with a name of my choice and set its parameters!!!?
Thanks Michael
"Michael Nemtsev" wrote:
That line of code, that cited Ignacio, just bind your data to report to show
report content.
SetDataSource can take different data sources, including DataSet.
See MSDN for more details about this method
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
"Badis" wrote:
Thank U very mutch Ignacio and this code is working fine but I didn't using
the " r.SetDataSource ( GetaDataSet() );" line of code because I don't know
what it does!!?
So does it add a new data to my Report file!!?
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
>
ReportDocument r = new ReportDocument( );
r.Load( reportURL );
// set the parameters/ the datasource, etc,etc
r.SetDataSource ( GetaDataSet() );
r.ExportToDisk( ExportTypeForma t.PortableDocFo rmat , "path to file );
>
>
--
Ignacio Machin
machin AT laceupsolutions .com
>
>
"Badis" <Ba***@discussi ons.microsoft.c omwrote in message
news:CA******** *************** ***********@mic rosoft.com...
Hi,
Could any one give a sample example on how to export crystal report called
"MyReport.r pt" to PDF using Crystal Report !!?
Thanks
>
>
>
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, the report crashes.
I have tried each of the methods:
|
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
|
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...
|
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 main report and export main report.
Does anybod know how to do that?
|
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 the stack trace for more information about the error and where it originated in the code.
...
| |
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:
Me.crReportDocument.Export()
The main report requires 4 parameters. The linked reports do not
require any...
|
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 on win2003 or in
xp. So my thought with all this is that something is going on with IIS7,
so...
|
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 fine.
I tried with some updates for Crystal Report, but with no result.
Please, help me!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |