[RESOLVED] Need help with this assignment.
I have a Report that I'm rendering in Microsoft ReportViewer.
I set the sizes to 11in, 8.5in <-- This would make the report landscape
When it finished rendering and I want to print it, the size is wrong.
Instead of the papersize being A4, it is "Letter"
I've tried just about everything now and this is starting to chip away on my last nerve now :D
The only way I found to even see the papersize setting is with this:
[Note that I cant set it here, as it is only ReadOnly]
vb.net Code:
Dim myReportDataSource = New ReportDataSource("dsShampoo_SH", dataSet.Tables(0))
rvShampoo.LocalReport.DataSources.Add(myReportDataSource)
'This is the only way I found to even see anything that has something to do with what I want to change...
'rvShampoo.LocalReport.GetDefaultPageSettings.PaperSize.Kind = Printing.PaperKind.A4
Re: Need help with this assignment.
Set the size to 11.69 * 8.27 as per the given link and check.
http://social.msdn.microsoft.com/For...5-515840b7e4ad
Re: Need help with this assignment.
Thing is I want to do a manual print, not using the printDialog.
Doing this, I need to select(Hardcode) a tray "Tray 2" in the printer and the printer name and page size...
Your post does sort out my size problem though, thanx a lot.
Re: Need help with this assignment.
If my link resolves your issue then, mark the thread as resolved and add to my reputation. If you have any other issue then open a new thread. I've found the link to resolve the question you have asked.