Skip to Content
0

Upgraded .Net Framework and now will only allow to print to PDF

Nov 10, 2017 at 08:45 PM

53

avatar image
Former Member

I recently moved a site I had been working on from .Net 3.5 to .Net 4.5. On my old site when I clicked the Print button in the Crystal Reports Viewer it launched a print window where I could select a printer and print the report. Now that I have upgraded (I created a whole new site) when I click the Print button it launches an Export to PDF window. I have been trying to compare the two sites to see what is different between them and I can't figure it out. Unfortunately I know very little programming and yet somehow I appear to be the expert in our company (which doesn't help). What I am looking for I guess is ideas on where to look and what to try to get it so that the printing function works again through the standard Crystal Reports Viewer. I really don't want to create my own print button and program it that way.

Reports were generated in CrystalReports 2013.

Using CrystalReports for Visual Studio to "embed/run" the report on an ASPX Web Form.

Using VisualStudio 2015.

Both sites are using the exact same CrystalReports file.

Not sure what other information you need...

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Nov 17, 2017 at 05:27 PM
0

Hi Kelsey,

In your default.aspx there should be a line like this:

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" PrintMode="ActiveX" />

Otherwise it looks like this to default to the PDF output:

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />

You can also set PrintMode to ActiveX in the viewer properties of the project.

Or add this to the code:

CrystalReportViewer1.PrintMode = PrintMode.ActiveX;

Don

Share
10 |10000 characters needed characters left characters exceeded