CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    152

    DataGrid Print Problem

    hey guys i am trying to make the datagrid a full page buy i have like a 2" border all the way around can anyone help or suggest on how to get rid of it?

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

    Re: DataGrid Print Problem

    Printers have a minimum margin, although it's usually 1/8" or so. I usually set all margins to .25" or 1/4 inch. Otherwise, choose a different printer driver.
    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!

  3. #3
    Join Date
    Jan 2007
    Posts
    152

    Re: DataGrid Print Problem

    Hey sorry i was tired and its not the DataGrid its the DataReport I've used more then one printer and it wont change I think its the actual DataReport

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

    Re: DataGrid Print Problem

    Then you must have saved it in the Report, rather than using the default size
    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!

  5. #5
    Join Date
    Jan 2007
    Posts
    152

    Re: DataGrid Print Problem

    Hey dglienna you got an email I could send you my source code? mabye you could take a look at it

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

    Re: DataGrid Print Problem

    No VB6 installed on this laptop. If you zip it up, someone will look at it. Or, create a new project, and build a new report, to see if it works the same. Then post that one!
    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!

  7. #7
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: DataGrid Print Problem

    Most likely it is margin settings within the report. I have not used the data report tool included with VB6 so am unsure exactly what it includes.

    I do know that the tool I use has settings for right left top and bottom margins. The issue is likely in these settings or in the printer properties.
    Always use [code][/code] tags when posting code.

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