Printing from a web application with VS 2010

Posted on 2011-10-16
Last Modified: 2012-05-12
I am trying to determine the best way to print reports from a web application when using VS 2010.  
These will be form letters that will be sent by mail to customers as decisions are made about access to their account.
My boss prefers I do not use a third-party reporting tool if I can avoid it.  We have just upgraded to VS 2010 and noticed a Printing category in the toolbox, but all the options below it are greyed out.

Is that because my project is a web application or is there some other reason?

What is the best approach for what we want to accomplish?
(Ideally, we would also like the user to be able to optionally preview a report before sending it to the user's default printer.)

Thanks in advance!

Question by:codefinger
    LVL 25

    Expert Comment

    by:Shaun Kline
    If you are using SQL Server, you could use SQL Server Reporting Services. According to this posting ( you also have the option of using Crystal Reports.
    LVL 83

    Expert Comment

    Is the printing going to be done on server or on the client?

    Author Comment

    Good question CodeCruiser.

    All I know for sure is the output will have to be on the user's default printer, so probably not from the server.

    Can you please describe the best approach in both situations?

    LVL 83

    Accepted Solution

    LVL 25

    Expert Comment

    by:Shaun Kline
    If you need any type of control of page breaks or how the page will look when printed, using HTML to generate the page will be extremely difficult as the printed page is dependent on the user's printer setup.

    Author Closing Comment

    Fortunately, one page letter, so CodeCruiser's suggestion hit the mark.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    HTML table 7 36
    Help file 1 28
    Website URL redirection 10 32
    Unexpected HttpURLConnection connection behavior 2 14
    PaperPort is a popular document imaging/management product from Nuance Communications ( It is in widespread use by both individuals ( and businesses (http:/…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now