Skip to Content
0
Former Member
Dec 12, 2016 at 04:18 PM

C# Export Report with Chart to PDF

227 Views Last edit Dec 14, 2016 at 09:28 PM 2 rev

Hello Support,

I am creating a report that contains some data fields and charts in a page.

The requirement is to export the whole report with Chart to PDF using C# code.

It is working fine when i export to PDF using Crystal report designer.

But when i am trying to export to PDF from C# code, it does not export the chart. And showing blank page for chat.

I am using the code below:

Stream st = cryRpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

Please suggest how to export to pdf using Chart. If possible please provide some same code.

Regards,

Harvinder Singh