ByzantianX
Programmer
- Dec 18, 2000
- 103
I've got a problem making report by data report in vb6. Report should be printed in custom paper format (18mm larger than A4). The printer is HP LaserJet 1100. Report width is around 16000 twips. I tried to set the required parameters to HP1100 with printer object, like:
dim pr as printer
for each pr in printers
if pr.devicename="HP LaserJet 1100" then
set printer=pr
exit for
end if
next
printer.orientation=2
printer.height=17000
etc., but that does not have any impact on real hp1100 settings (I guess because of the driver). Then I tried to manually set the parameters and when I tried to print the report, I got a vb6 error message: "Report width is larger than paper width". Except printing reports by ms access or crystal reports, could I fix this somehow in vb6 DED by data reports? Thank you!
dim pr as printer
for each pr in printers
if pr.devicename="HP LaserJet 1100" then
set printer=pr
exit for
end if
next
printer.orientation=2
printer.height=17000
etc., but that does not have any impact on real hp1100 settings (I guess because of the driver). Then I tried to manually set the parameters and when I tried to print the report, I got a vb6 error message: "Report width is larger than paper width". Except printing reports by ms access or crystal reports, could I fix this somehow in vb6 DED by data reports? Thank you!