Click here to Skip to main content
15,910,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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



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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900