473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3601
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*****@discus sions.microsoft .com> wrote in message
news:B2******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:B2******** *************** ***********@mic rosoft.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
4163
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 graphics resolution and also requires endless positioning tweaking on my part. Is there a way to use Word or Excel on the client, and send the invoice data down so that some sort of invoice template could be used? This needs to work on a Mac and...
0
1540
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 imbedded form made up from the orders table. The embedded form is connected by Master and Child link by the Invoice number. This all works fine as long as I have several items in the order. If I have only ONE or TWO items in there, apparently my...
1
1893
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, acPreview, , strWhere I am trying the following adjustment with the sendObject
0
1917
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 type of paper offered by our bank. In Holland, we call this kind of paper "acceptgiro". I am thinking of two options. one is do this work in ASP.NET, one is do it by windows application. I prefer ASP.NET of course even I have to do some extra...
3
2882
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 invoice format paper. I am thinking about the following to print the invoice. 1. Ms Access Report. 2. ASP.NET web form.
2
3233
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 to open a crystal report Dim myreport as new reportdocument() Dim Rptfrm as new project1.reportfrm()
3
2736
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 form witch has text fields with white background. However, this is not a solution because the user has to search the text field locations. My problem is how to pass parameters from a form to a report?? I want to create a form from which the user can...
1
3243
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 settings. When the invoice is printed the app reads that settings and using the printer object send each field to the position that was previously configured. I'm working on the VB .NET version of that app, I already migrate the other process and...
3
2058
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 : select case me.status case 1 :'open' me.allow deletions =true case 2: 'closed' me allow deletions=false. end select. end sub
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.