CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2005
    Posts
    26

    DataReport Width

    Hi,
    Always I encountered the msgbox error Report width is larger than the paper width with DataReport. What is the proper width that I should made to avoid this error?

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: DataReport Width

    Quote Originally Posted by aldowsary
    Hi,
    Always I encountered the msgbox error Report width is larger than the paper width with DataReport. What is the proper width that I should made to avoid this error?
    if paper.width - leftmargin - rightmargin > then your reportwidth then you will not have that error msg.

    so have a look to the margins they are also properties of the paper as I remember.
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: DataReport Width

    Yes, LeftMargin and RightMargin are properties of the datareport.
    They are set to 1440 default.
    Make it smaller.

    In my opinion, your datareport is not structured good, why not also have a look on grouping and ordering the items more appropriately.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: DataReport Width

    If it's too wide, then switch the orientation before you print it.
    You can set it in advance, or let the user decide.

    MS released this after getting complaints about setting the printer using the cdc control.

    Check out this example:
    Attached Files Attached Files
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured