Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

hi ... i've created one crystal report in windows form and one crystalreportviewer .. the following is my code.. in form1.cs file try { ExportOptions CrExportOptions; DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions(); PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions(); CrDiskFileDestinationOptions.DiskFileName = "c:\\csharp.net- informations.pdf"; CrExportOptions = cryRpt.ExportOptions; { CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile; CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat; CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions; CrExportOptions.FormatOptions = CrFormatTypeOptions; } cryRpt.Export(); } the above code is saving the file into pdf into specified path.. but i dont want to save a file i should get direct print preview and have a option to print .. As we do in web application using crystal report viewer clicking print and report will be opened in pdf.. and the click print.. i want the same function as we do in web application... i'm writing code in c#.net hope the above explaination will be understood clearly..

3654


Explain basic steps required to display a simple report in crystal?

1144


hi... i've two crystal reports one is in D: drive name employee.rpt with 5 textobject and another report is in E: drive name employee.rpt with 15 textobject... now i want to write a program to overwrite the D drives report with E drives reports i.e i want to replace the 5 textobject with 15 textobject.. overwriting the reports while it is executing .. is there any code for it please help me.. its urgent..

3119


How to access crystal reports in .net?

1204


What are field expressions and what are the diff types? (I looked this up in the internet and never found anything with regards to types of field expressions)?

1149


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

1084


hi.. i've one crystal report. i want the report header as "employee database". i dont want to right click->insert and goto text object and insert. i've one aspx page and aspx.cs page also. now i want the "employee database" header to be printed from .cs file. i dont want to pass by parameter also.. i.e is there any option in .cs file something like ReportDocument myreport = new ReportDocument(); myreport.Load(MapPath("~/" + "emp.rpt")); myReport.Reportheader="Employee database"; i hope u have understood this. only thing is from .cs file i want to print the header as employee database. i dont want by passing parameter also... please help....

2864


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

2784


Explain the various components in crystal reports?

1268


how can we convert crystal dictionary dc5 file to another datasource format like mdb or xml schema

3082


How to open subreport in new ie window using hyperlink button. I used target=new; in the formula field. But it overrides the main window and show the report?

1168


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?

1058


How can we improve the performance of a crystal report?

1178


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

1104


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

1094