Click to See Complete Forum and Search --> : how to custom paper size of data report in visual basic 6.0
anshu.rahul
May 8th, 2006, 07:02 AM
hello
i am working on a project using visual basic. i have to print a recept which is of 7.6 x 9.8 inch size. by default the paper size it prints is of A4 size page. so how to custom this size using code while printing data report in visual basic 6.0
shakti5385
May 8th, 2006, 08:00 AM
Try to Use crystal report it has this type of facility
Please go in the reporting section of vbforums for more detail
Simply Me
May 8th, 2006, 10:58 PM
if you are going to use crystal report 9 try this one. it's not mine but I saw it here in the forum. its from JerseyKid.
Private Sub CRViewer91_PrintButtonClicked(UseDefault As Boolean)
UseDefault = False
'Brings up the print dialog box
oReport.PrinterSetup Me.hWnd
'If 'Cancel' is selected will cancel print job
If Err.Number <> 0 Then
oReport.PrintOut False
Else
'Means 'OK' was selected and will print out
oReport.PrintOut True
End If
End Sub
Hack
May 9th, 2006, 06:08 AM
Moved to reporting section
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.