Results 1 to 6 of 6

Thread: Report Viewer Rendering Question

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Red face Report Viewer Rendering Question

    How do I wait until the report has finished rendering before the rest of the code gets executed?

  2. #2
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: Report Viewer Rendering Question

    What report? What Code?
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  3. #3

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Re: Report Viewer Rendering Question

    Ok, let me put it this way.

    This is what happens on form load:
    1: report gets generated from a datatable (using microsoft report viewer)
    2: export the report to a .pdf

    Now I get the problem that it wants to start the export before the report hes finished rendering(generating)

  4. #4
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: Report Viewer Rendering Question

    You didn't post your code.
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  5. #5

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Re: Report Viewer Rendering Question

    I dont see how it is relevant, because after it ran all the code it still gives an animated screen on in the reportviewer and then after the "generation" is complete it shows the report. I might be wrong, so this is the code I'm using.
    vb Code:
    1. Dim MyReportDataSource = New ReportDataSource("dsNewInvoice_LABELS", dsPrintLabels.Tables(0))
    2.         rvLabel.LocalReport.DataSources.Add(MyReportDataSource)
    3.         Me.rvLabel.RefreshReport()

  6. #6
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: Report Viewer Rendering Question

    Code is relevant when you ask for help with code!

    How do we know what you are doing, even if you say so, you may not be right. No one is right all the time, myself included.

    If the computer isn't working ALWAYS check to see if it is plugged in even if you know it is plugged in. Then check for power in the outlet before you even open the case.

    It is the first step to basic troubleshooting, review the code. If you want others to help you, they need to review the code.

    I've never used whatever report thing you are using, since you didn't specify, I couldn't even do an search for it. But since you posted some code maybe someone will recognize it and tell you if you can run it asynchronously or handle an event.
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

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
  •  



Click Here to Expand Forum to Full Width