Link to home
Start Free TrialLog in
Avatar of imccorp
imccorp

asked on

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?
Avatar of Rahul Agarwal
Rahul Agarwal
Flag of India image

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
Avatar of imccorp
imccorp

ASKER

All PCs have Adobe Active X installed.
DO they all have Adobe reader installed?

Are they all the same version and fairly new?

mlmcc
Avatar of imccorp

ASKER

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.
What version of reader doesn't work?

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

mlmcc
Avatar of imccorp

ASKER

We are using version 9 and version 10.

The one that have different behaviour was at version 10.
ASKER CERTIFIED SOLUTION
Avatar of imccorp
imccorp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of imccorp

ASKER

Managed to resolve it by myself