Forum Post: RE: PaperSize CAST not working

  • Thread starter Thread starter Fernando Souza
  • Start date Start date
Status
Not open for further replies.
F

Fernando Souza

Guest
This is an example on how to get this to work (as explained by Laura). DEF VAR clsPaperSize AS CLASS System.Drawing.Printing.PaperSize. DEF VAR clsReportDocument AS CLASS CrystalDecisions.CrystalReports.Engine.ReportDocument. DEF VAR clsType AS CLASS System.Type. clsType = Progress.Util.TypeHelper:GetType("CrystalDecisions.Shared.PaperSize"). clsReportDocument:PrintOptions:PaperSize = CAST (System.Enum:ToObject(clsType, clsPaperSize:RawKind), CrystalDecisions.Shared.PaperSize).

Continue reading...
 
Status
Not open for further replies.
Back
Top