Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2240
  • Last Modified:

CrystalReportViewer PrintMode

I am trying to make printing report compatible with all browse. Since ActiveX is only working on IE, therefore I set the printmode to PDF.  I am using the following in the code, which is getting exectued.  

CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf

I am also using the following in the ASPX

 <%
@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR"
 %>

And

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

When I press the printer button on some PC I get a print dialog box and on some other PC I got PDF export dialog.  Both PC are using the same version of IE.

Any idea, where is the settings to control this behaviour?
0
imccorp
Asked:
imccorp
  • 5
  • 2
1 Solution
 
Rahul AgarwalTeam LeaderCommented:
There may be no adobe acrobat active X installed on the other computers.

You can set via

 myCrystalReportViewer.PrintMode = CrystalDecisions.Web.PrintMode.Pdf
private void SetPrintMode()
    {
      crystalReportViewer.PrintMode = PrintMode.Pdf;
    }

reference:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialscrvcustomizecrvprint.htm
http://msdn.microsoft.com/en-us/library/ms226827%28v=vs.90%29.aspx
0
 
imccorpAuthor Commented:
All PCs have Adobe Active X installed.
0
 
mlmccCommented:
DO they all have Adobe reader installed?

Are they all the same version and fairly new?

mlmcc
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
imccorpAuthor Commented:
Yes, all of them has Adobe Reader, but different version.

I dont think it was due to Adobe reader version, because those machines that have the same Adobe reader version has different behaviour.
0
 
mlmccCommented:
What version of reader doesn't work?

I know there is a minimum version required but I don't know what it is.

mlmcc
0
 
imccorpAuthor Commented:
We are using version 9 and version 10.

The one that have different behaviour was at version 10.
0
 
imccorpAuthor Commented:
Managed to resolve the issue by reinstalling the Adobe Reader on the PC that having different behavior.
0
 
imccorpAuthor Commented:
Managed to resolve it by myself
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now