Re: Invoice printing in ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 11/01/04


Date: Mon, 1 Nov 2004 10:41:13 -0500

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" <cFleury@discussions.microsoft.com> wrote in message
news:B2266EF0-B988-44A6-947A-02E78BD52380@microsoft.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


Relevant Pages

  • Insert a page break in HTML
    ... Is it possible to enter a page break in a HTML document, ... document is diplayed in browser and user click print, ... the document and eject the page and continue printing on the next page. ... TIA ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do i make "volume" work in HTML?
    ... >> will recognize when one prints the html document from a browser. ... >link to a PDF version of the same document for pretty printing. ... kensmith@xxxxxxxxx forging knowledge ...
    (sci.electronics.design)
  • Re: Local Printing with IE
    ... Paul T. ... works fine with my own code, but the browser never even does that. ... but installing serial port sniffer between printer and your ... printing support component to your platform in PB? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Malware Triangle
    ... Ok, the capable browser says "Ooh look, a script tag! ... > ability to act as a container for non-html content, ... > that conglomeration is an html document, ... > execute the additional content contained within html documents they ...
    (alt.computer.security)
  • Re: Implementing print functionality in ASP.NET web application
    ... the browser, and the browser is designed to prevent any malicious code from ... Run a search over at www.dynamicdrive.com for some JavaScript print ... There must be some way to get some printing done from a web page. ... page from which I entered my question has a button saying 'Print Post'. ...
    (microsoft.public.dotnet.framework.aspnet)