cancel
Showing results for 
Search instead for 
Did you mean: 

Import crystal report data

Former Member
0 Kudos

How to import cystal report data into MS Excel while running Crystal report in SAP Business one?

Accepted Solutions (1)

Accepted Solutions (1)

former_member209699
Contributor
0 Kudos

Hi

It works when u try to import while running ur addon.

I think u r trying to do this in development environment.

regards:

Sandy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use

ReportDocument.ExportToDisk(ExportFormatType.Excel, filename);

This is in the CrystalDecisions.CrystalReports.Engine namespace.

Before that, you need to use ReportDocument.Load("myreport.rpt") to load the data.

Best Regards,

Jay.

Nussi
Active Contributor
0 Kudos

Hi,

i you addon to print crystal reports use the viewer to print (it's like preview printing).

than the crystal report is not directly print to printer you'll get a preview window.

from this preview window you can access various export functions.

this only works when you included the preview window in a windows form in your addon.

regards

David