All,

I'm working on a .NET 3.5 application (upgrade from 2.0) with Crystal
Reports in it.

Since we just upgraded the code from 2.0 to 3.5, I thought it would be
intresting to also upgrade from Crystal Reports 2005 to Crystal
Reports 2008.

This transition worked flawlessly, except for 1 thing which I can not
wrap my head around: I am unable to change the PrinterDuplex in the
report.PrinterSettings since the upgrade !!

report.PrintOptions.PrinterDuplex =
CrystalDecisions.Shared.PrinterDuplex.Horizontal; // does not work
anymore

Message: COMException: {"Invalid index. (Exception from HRESULT:
0x8002000B (DISP_E_BADINDEX))"}
Source: "CrystalDecisions.ReportAppServer.Controllers"
Stacktrace: "   at
CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrintOptions
(PrintOptions newVal)\r\n   at
CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterDuplex
(PrinterDuplex value)\r\n   at Gui.Reporting.ReportPrinter.PrintOnly
(ReportInfo info, IList`1 paramValues, Int32 nCopies) in C:\\data\
\tcm_1.0\\Generation\\TCM\\src\\Gui\\Reporting\\ReportPrinter.cs:line
91"

Anybody here who had the same problem or knows where I could find an
answer ?

cheers and thanks in advance,
Andy

Reply via email to