Programmatically set Custom Paper Size for Crystal Report
I have created custom paper Size "SUPP 15 x 14" in Setting - Printers - File - Server Properties. Now I’m trying to set custom Paper Size for Crystal Report using VB.net 2005. When I run report from VB.net, the Crystal report viewer shows the correct preview for custom paper size but when I give print command it prints with the default printer paper size. (e.g Letter) Here's the code I'm using to print: Public Sub ... '... Dim ObjCrReport as new ReportDocument '... ObjCrReport.SetDataSource(ObjPrintDataSet.Tables("PrintData")) SetReportPageSize("SUPP 15 x 14", 1) '... End Sub Private Sub