page-size

Programmatically set Custom Paper Size for Crystal Report

匆匆过客 提交于 2019-11-29 16:56:01
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

Resizing a PDF using Ghostscript

こ雲淡風輕ζ 提交于 2019-11-28 15:22:45
问题 I am trying to scale a PDF which is for example just small of A4 size up to A4. This works fine with portrait documents. The document is scaled up correctly and then padding is added to the top. On landscape documents padding is not added though. Therefor the document will end up being the correct height for A4 but then not wide enough, as padding is not added on the document side (as I hoped). This is what I use to have it working for A4 portrait documents: gs \ -sOutputFile=output.pdf \

Programmatically set Custom Paper Size for Crystal Report

梦想的初衷 提交于 2019-11-28 11:14:41
问题 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