Click here to Skip to main content
14,543,895 members
Rate this:
Please Sign up or sign in to vote.
See more:
In my application a crystal report is appear in to a crystal report viewer . and select print option as "card 148 * 105 mm" , then printing in exact length.

Set the report design -> paper size is above .
It is also correct in preview .
But I print it direct then , paper printing length is not 105 , it stop when 90 mm . code as below

Dim crptReport As New rptrcash
crptReport.RecordSelectionFormula = "{Tbl_Receipts.RecBillNo}=" & txtRecepitno.Tag
crptReport.DataDefinition.FormulaFields("CmpyUser").Text = Chr(34) & Cmpyuser & Chr(34)
crptReport.PrintToPrinter(1, False, 1, 1)

how to set exact paper printing length.
Updated 23-Sep-10 23:27pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Do you have margins set that stop the printing at 90mm? Or perhaps you have a section of your report that you are not using and forgot to suppress. If you don't suppress it, it will print as white space.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100