Datareport is causing me a heart attack!
I have a paper size of Height: 5.50 Width:8.50 INCH
I'm using Epsson Printers and OS Windows XP.
I created a special document size and assigned it to the Epsson printer.
now each 1440 = 1 inch right? ok
So I set my reprot width to 7920 and height 12240
now , when I try to print the report , the printer changes the paper orientation from Portait to Landscape !
did I tell the printer to do so ? NO , it just changes it automatically!
So what wrong am I doing here !!!? why is it changing to landscape
and the funny thing , when I increase the height size of the form I have created in the printer settings , the reports appears in portait mode!!
I don't understand , please help me out
Re: Datareport is causing me a heart attack!
Re: Datareport is causing me a heart attack!
Quote:
I have a paper size of Height: 5.50 Width:8.50 INCH
...
So I set my report width to 7920 and height 12240
The above statements contradict each other.
Height = 5.5 * 1440 = 7920 but you set it to 12240
Width = 8.5 * 1440 = 12240 but you set it to 7920
Re: Datareport is causing me a heart attack!
When are you changing the report's width? Design-time or run-time? You may need to change the PaperSize at run-time...
Re: Datareport is causing me a heart attack!
you may want to set printer orientation through code. take a look at the link.
Re: Datareport is causing me a heart attack!
You can change the Orientation by uising the code below it requires you to have service pack 4 or above ( Vb last service pack was 6 and i sugest you download it).
Code:
Option Explicit
Private Sub Command1_Click()
DataReport1.Orientation = rptOrientLandscape
DataReport1.Show
End Sub
Hope this helped!!
:wave: :thumb: :wave:
Re: Datareport is causing me a heart attack!
Moved to Reporting section