Results 1 to 4 of 4

Thread: [RESOLVED] Need help with this assignment.

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Resolved [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:
    1. Dim myReportDataSource = New ReportDataSource("dsShampoo_SH", dataSet.Tables(0))
    2.         rvShampoo.LocalReport.DataSources.Add(myReportDataSource)
    3.  
    4. 'This is the only way I found to even see anything that has something to do with what I want to change...
    5.         'rvShampoo.LocalReport.GetDefaultPageSettings.PaperSize.Kind = Printing.PaperKind.A4

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

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

  3. #3

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    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.

  4. #4
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    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.
    thanks
    amrita

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
  •  



Click Here to Expand Forum to Full Width