[RESOLVED] Print only a page of data report
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: [RESOLVED] Print only a page of data report

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    6

    [RESOLVED] Print only a page of data report

    Hello!
    I made a Data Report and I want to print using DataReport.PrintReport False.
    Even the report has many pages, it is print only first page. I tries to use rptRangeFromTo or rptRangeAllPages, but in vain.
    If first show the report and then I print, all works fine.
    Can you help me?
    Thanks a lot!

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,960

    Re: Print only a page of data report

    Just HIDE it. Set VISIBLE property to FALSE!
    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
    Nov 2011
    Posts
    6

    Re: Print only a page of data report

    Quote Originally Posted by dglienna View Post
    Just HIDE it. Set VISIBLE property to FALSE!
    Problem is because I send Data Report as a parameter to a function (as Object)Only in this case it prints only first page. Any ideea to resolve the problem?

    Thanks!

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,960

    Re: Print only a page of data report

    Sounds like the object is SENDING only one page. What DOES work?
    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
    Nov 2011
    Posts
    6

    Re: Print only a page of data report

    I found the problem.
    Because after I printed the report, I used Unload DataReport. And it was printed only first page of the Data report. I removed this instructions and all work fine.

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center