Hi there,
am bit with a problem, can anybody can tell me how to set the pagesize
dynamically to a crystal report,
rpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
rpt.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA3;
have written this code but it gives me error as, am i missing anything
or some trick is there
Invalid index. (Exception from HRESULT: 0x8002000B
(DISP_E_BADINDEX))Source
CrystalDecisions.ReportAppServer.Controllers
Target Site
Void
ModifyPrintOptions(CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions)
Stack Trace
at
CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrintOptions(PrintOptions
newVal) at
CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PaperSize(PaperSize
value) at
App_UI_CrystalReports_frmSectionWiseResults.btnViewReport_Click(Object
sender, EventArgs e) in
d:\Projects\SMShetty\App_UI\CrystalReports\frmSectionWiseResults.aspx.cs:line
317