|
-
Dec 20th, 2010, 09:58 AM
#1
Thread Starter
Addicted Member
[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 
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
-
Dec 20th, 2010, 10:03 AM
#2
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
-
Dec 20th, 2010, 10:29 AM
#3
Thread Starter
Addicted Member
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.
-
Dec 21st, 2010, 01:06 AM
#4
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|