cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically Export a report to PDF?

0 Kudos

I am trying to figure out how to export a report directly to PDF without the need for that Export dialog popping up.
Here is my code thus far...but I cant seem to figure our how to make this process "Silent" and how I set the "File name".

In CR 8.5 I used [moCrystalReport.ExportOptions.DiskFileName], but this doesn't exist, nor can I find a replacement.

I am using CR 2013 with VS 2013.

Any help or suggestions would greatly be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

former_member198519
Active Contributor
0 Kudos

Answers (2)

Answers (2)

0 Kudos

Hi Phil,

I changed the Tag to CR for VS.

You need to get the CR for VS SDK first.

https://blogs.sap.com/2010/12/07/sap-crystal-reports-developer-version-for-microsoft-visual-studio-u...

First link to install into VS, all others are for redist only, do not install them on your DEV PC.

The code snippet above should work for you but you will need to set log on info as well.

See KBA 2281780 for a sample on how to.

Don

0 Kudos

Thank you. I am going to start there and see where that takes me.