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
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