Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Set PageSize Dynamically Post Reply Post New Topic
Author Message
nayeem4umd
Newbie
Newbie


Joined: 01 Feb 2010
Location: India
Online Status: Offline
Posts: 13
Quote nayeem4umd Replybullet Topic: Set PageSize Dynamically
    Posted: 01 Mar 2010 at 1:52am
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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.030 seconds.