VB DataReport - Problem with ReportWidth


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: VB DataReport - Problem with ReportWidth

  1. #1
    Join Date
    Dec 2004
    Location
    México DF
    Posts
    127

    VB DataReport - Problem with ReportWidth

    Dear all,

    I am stuck setting the ReportWidth propery of the DataReport control.

    This is my reasoning: an A4 sheet (portrait) is 29.7 cm wide, if 1 cm is 567 twips, then the DataReport.ReportWidth could be set up to 29.7 * 567 = 16839 twips approx.

    Whenever I set my ReportWidth to a value larger than 9200 (I was trying 13995) I get this error message: "Report width is larger than paper width".

    Anybody has a clue how do I solve this? Has this to do with printer settings?

    TIA for your help,

    mc

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2004
    Location
    México DF
    Posts
    127
    Thanks Phil (again) for the great help!

    If anyone is interested, it seems after SP4, there's a DataReport.Orientation property, which can be set to:

    • rptOrientDefault = 0
    • rptOrientPortrait = 1
    • rptOrientLandscape = 2

    But this property is not available at design-time, and not documented in the help.

    HTH,

    mc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center