Can we export data of reports into other format like in
world doc etc?

Answer Posted / kamalakannan.a

Sure.We can save the crystal report as many formats.There
are .Doc,,xsl,.pdf and etc.

The sample code i used in my project is given below.

case "pdf":
{
//setting disk file name

crDiskFileDestinationOptions.DiskFileName =
ExportPath + filename;
//setting destination type in our case
disk file

crExportOptions.DestinationOptions =
crDiskFileDestinationOptions;
//setting export format type

crExportOptions.ExportDestinationType =
ExportDestinationType.DiskFile;
//setting previously defined
destination opions to our input report document

crExportOptions.ExportFormatType =
ExportFormatType.PortableDocFormat;
break;
}

case "xls":
{
//setting disk file name

crDiskFileDestinationOptions.DiskFileName =
ExportPath + filename;
//setting destination type in our case
disk file

crExportOptions.ExportDestinationType =
ExportDestinationType.DiskFile;
//setting export format type

crExportOptions.ExportFormatType =
ExportFormatType.Excel;
//setting previously defined
destination opions to our input report document

crExportOptions.DestinationOptions =
crDiskFileDestinationOptions;
break;
}


Kamal...

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose I have a crystal report with a linked subreport as well. Is there any way not to print the current record on the main report if no records are returned from the subreport?

638


Kindly Help for this Below Scenario, I am going to implement Power BI into our internal software. I’m familiar with the fact that each user can pay $9.99 a month to build and view reports but what I need to know is how can we embed Power BI into our application so that any users that log into our application can see the reports without the monthly fee. I’ve researched enough that it can be done. What I am not familiar with is how to do it or the pricing of embedding it into an application. I think they do pricing on how many renders you do or something. Would you be able to look into how we could embed it into our software and the cost?

1373


Where can we find the log file generated when we run a crystal report?

688


How to access crystal reports in .net?

672


Explain reporter footer contents are move depend the page footer values?

620






What all performance improvement techniques used in crystal reports? (Particularly cr xi)?

634


Suppose I am not able to see any image on crystal report at run time. So how can I load any image which is saved in local disk so that it can be viewed at runtime in crystal reports?

657


If we create reports in Crystal Reports using the UCAR Data Warehouse database, which tables should be used?

2250


Is there a way to be able to change an image(company logo) dynamically in a report? Example if you have 100 reports, and with the market uncertainty if you anticipate that the company logo might change, how can you change the image just in one place and have this reflected in all the reports at run time?

630


How can we improve the performance of a crystal report?

675


Where is the image located, after youve placed it on the report?

653


How the data expert of flash object(after inserting flash object_right click-data expert) is useful in crt?

1304


Is there a size limit to creating a Crystal Report? If I run a statement report for all customers it will crash if there are too many customers. I can print all the statements if I select them in batches, but if trying to print all at once Crystal will crash after a few minutes.

930


How do you add a subreport to a report in Crystal Reports?

703


Explain the various components in crystal reports?

756