How do I populate a report with data in the background and print? RRS feed

  • Question

  • Using Microsoft Reports, can you populate a report with data and print it with out showing it?

    IE : If a user is on the invoice screen and wants to print it out.
    It populates the report with the data, without the user being aware of this (All happening in the background),
    and then print the report?

    to sum it all up:

    From the users perspective:
    1) Clicks print.
    2) Neat report with all the data jumps out of the printer

    From the programmers perspective:
    1) User clicks on print
    2) In the background the application populates a report and then sends it to the print que to be printed.
    3) Neat report with all the data jumps out of the printer

    How do I achieve this?
    Thursday, April 29, 2010 1:31 PM

All replies

  • Take a look at this blog post by Brian Hartman. He also provides the code for a sample PrintDocument class that you can use for your convenience.

    Note: this prints to a printer specified by the server, not the client machine with the browser.

    Cephas Lin This posting is provided "AS IS" with no warranties.
    Thursday, April 29, 2010 2:44 PM