Results 1 to 4 of 4

Thread: [2008] ReportViewer remote landscape printing

Hybrid View

  1. #1
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2008] ReportViewer remote landscape printing

    Hi,

    You could try something like this:

    vb Code:
    1. Dim tip As Type = reportViewer1.[GetType]()
    2.      Dim pr As FieldInfo() = tip.GetFields(BindingFlags.Instance Or BindingFlags.NonPublic)
    3.      Dim ps As New System.Drawing.Printing.PageSettings()
    4.      ps.Landscape = True
    5.    
    6.      For Each item As FieldInfo In pr
    7.          If item.Name = "m_pageSettings" Then
    8.              item.SetValue(reportViewer1, ps)
    9.            
    10.          End If
    11.      Next

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Manchester, England
    Posts
    255

    Re: [2008] ReportViewer remote landscape printing

    Thanks for your reply. Unfortunately, it hasn't made any difference.
    At home - VB.NET 2005/2008 Express, Visual Web Developer 2005 Express
    At work - VS 2008 Standard (VB)
    .NET 2.0/3.5


    Visual Studio Express Learning Centre | How do I videos | MSDN VB Express Forum | MSDN VB Developer Centre

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