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.Print Mode = CrystalDecisions.Web.Print Mode.Pdf
I am also using the following in the ASPX
<%
@ Register Assembly="CrystalDecisions .Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304" Namespace="CrystalDecision s.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?
CrystalReportViewer1.Print
I am also using the following in the ASPX
<%
@ Register Assembly="CrystalDecisions
%>
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?
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
Are they all the same version and fairly new?
mlmcc
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.
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
I know there is a minimum version required but I don't know what it is.
mlmcc
ASKER
We are using version 9 and version 10.
The one that have different behaviour was at version 10.
The one that have different behaviour was at version 10.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Managed to resolve it by myself
You can set via
myCrystalReportViewer.Prin
private void SetPrintMode()
{
crystalReportViewer.PrintM
}
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