Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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...

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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;


Answers (0)