473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Invoice printing in ASP.NET

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
Nov 18 '05 #1
2 3561
I am assuming that the invoice you want to print is already an ASP.Net web
form. If it isn't then you have a couple of options which to go by. But
first, if it is already ASP.Net web form and when the user clicks on the
browser's print button, then you want the page formatted in a printer
friendly format then I would just use the @media print {} in CSS (Cascading
Style Sheets). Using the CSS @media allows the page to look one way for the
screen and another for the printer and you avoid all the messing popup
windows and javascript.

If it is not already in a web form, then you could use a web form, PDF, or
even Crystal. But, personally in the past using web forms worked well when
I had a requirement to display and print an invoice to the end-user.

HTH.

-Chris
~
http://weblogs.austinspad.com/caustin

"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

Nov 18 '05 #2
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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Peter Young | last post by:
I need to be able to generate an invoice from an ASP page. Currently, the invoice is drawn in a web page and my client prints the page from their browser. This doesn't work too well in terms of...
0
by: Kalvin Schroder | last post by:
Hello, I'm fairly new to MSAccess, and have developed a little program for invoices. I have the form all working, as well as the Report which is the printed invoice. On the report, I have an...
1
by: DD | last post by:
Hi I want to email Invoice ID1 from a list of Invoices in a datasheet My code for printing is strDocName = "rptInvoice" strWhere = "=" & Me.fsubPrintInvoice.Form! DoCmd.OpenReport strDocName,...
0
by: Guoqi Zheng | last post by:
Dear sir, I am develoing an application on ASP.NET. This application needs to print a few hundreds invoice everyday. Those invoice has to be printed on a very very precise position on a special...
3
by: Guoqi Zheng | last post by:
Dear sir, Our E-commerce site needs to print out a few 100s invoice a day. I do not know what is the best way to print invoice. Those invoice has to be printed on a very precise position on our...
2
by: project | last post by:
I want to print an sales invoice with out open crystal report. I want to know ,with out opening Crystal report, how can I give the command to be printing invoice. I'm using the following lines...
3
by: abadi | last post by:
I have ready invoices and I want to enter the invoice information in a form then print the entered information on the invoice. The enter information is not stored in the database. I tried to make a...
1
by: Sergio Montero | last post by:
I have a VB6 app that allow users to set up invoice formats indicating X and Y position for each field (customer,total,etc). So when the format changes, the user only needed to change the X,Y...
3
by: eyalco | last post by:
I'm creating an invoice software (access 2000) in which most of it is over. Need to consult which is the best way to lock form and subform after saving and printing. The code I think of using is :...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.