Legal size & Landscape in CR

rashedimo

New member
Joined
Apr 23, 2008
Messages
3
Programming Experience
1-3
IDE : VS .NET 2003,
Platform : .NET 1.x, .NET 2.0,

Hello
I have been working 4 day's only to get print job which is should be on legal size and landscape mode
Here is my story , I have
• Dot Matrix Epson Printer (Defaults setting)
• Legal size paper

First :
In crystal report designer I setup printer I select the
PAPER SIZE = legal
Orientation = Landscape
Using this code

Code:
Dim Frm1 As New Form1
Dim RV As New CrystalDecisions.Windows.Forms.CrystalReportViewer
CR.SetDataSource(PrintDatabase1.Tables(0))
RV.DisplayGroupTree = False
RV.DisplayToolbar = True
Frm1.Controls.Add(RV)
Frm1.WindowState = FormWindowState.Maximized
RV.Dock = DockStyle.Fill
RV.ReportSource = CR
Frm1.Show()


When print the Document , the printer print in Portrait Orientation mode .
why I don’t know

second :

same situation but I add this code

Code:
CR.PrintOptions.PaperOrientation = PaperOrientation.Landscape


When print the Document , the printer print in Portrait Orientation mode .
why I don’t know

thired :

Code:
CR.PrintOptions.PaperOrientation = PaperOrientation.Landscape
CR.FormatEngine.PrintOptions.PaperOrientation = PaperOrientation.Landscape


Again When print the Document , the printer print in Portrait Orientation mode .
why I don’t know
 
Now after I changed the defaults setting for the Epson printer to
Orintation = Landscape
Paper size = Legal

And used this code


Code:
SetDataSource(PrintDatabase1.Tables(0))
CR.PrintOptions.PaperOrientation = PaperOrientation.Landscape
CR.PrintOptions.PaperSize = PaperSize.PaperLegal
CR.FormatEngine.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperSize.DefaultPaperSize = PaperSize.DefaultPaperSize.PaperLegal




The printer print in Landscape mode but it not printing the data which located in the right side of paper

While that I checked the properties of printer from printer button in the crystal report viewer
I found the orientation = Portrait

I think its mean the program print the document by coding as landscape but printer receive it and print it as portrait because that it is not shown the right side of paper
 
i'm upgrade fees program for our Department which has been developed using Q basic language, and the were using same printer and same size of paper. they were printing fine without any prablem like what im facing

help to get the help soon

thanks for all the members
 
Back
Top