Printing in an ASP.Net application happens on the client side. As the
document in the client browser is an HTML document, the browser does the
printing. The browser printing cannot be controlled (much) through code. The
only thing you can really control is the format of the document. What you
have to do is create an HTML document that looks good when printed via the
browser.
Crystal Reports.Net, which comes bundled with Visual Studio.Net, is a web
version of Crystal Reports. If you want to use it to create your invoice,
you may be overdoing it. An invoice is perhaps technically, a report, but
IMHO you'll have a lot less trouble creating your own Invoice page.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
Hello,
I am new to ASP.NET and I have to print an invoice from an application
written in ASP.NET, I have followed most of the threads in this newsgroup
about the dificulties posed by the server side nature of ASP.NET, but
nobody really addressed a solution to the problem, can I use "Crystal Reports"
which comes with Visual Studio to do it ? What is the down side if any ?. I'm
asking instead of just doing it because since I don't know Crystal I'm
trying to avoid having to learn something that is NOT going to help me.
Thanks
C.Fleury