473,805 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using objects to print pdf report?

I have a web application. There's 1 part whereby I'll show a list of items
(order). I did this by using classes and objects. I defined my own classes
(called orderitem and ordermanager), and my aspx file just call the
ordermanager to connect to the SQL 2000 server, perform stored procedure, get
the required data and convert them into orderitem and push them into an
arraylist. Finally it will return this arraylist and my aspx file just read
each orderitem in it and print their details out.

Now i want to put a checkbox beside every orderitem and then, after user
make their selection, they can press a "print to pdf" button to generate a
pdf file. Is that possible? It seems very difficult.
Nov 19 '05 #1
2 1106
to generate pdf use a library called itextsharp, search for it on google.
Its not exactly simple to get you head around, but it does work, I used it
on a number of occasions.
"wrytat" <wr****@discuss ions.microsoft. com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
I have a web application. There's 1 part whereby I'll show a list of items
(order). I did this by using classes and objects. I defined my own classes
(called orderitem and ordermanager), and my aspx file just call the
ordermanager to connect to the SQL 2000 server, perform stored procedure,
get
the required data and convert them into orderitem and push them into an
arraylist. Finally it will return this arraylist and my aspx file just
read
each orderitem in it and print their details out.

Now i want to put a checkbox beside every orderitem and then, after user
make their selection, they can press a "print to pdf" button to generate a
pdf file. Is that possible? It seems very difficult.

Nov 19 '05 #2
Thanks. Do I need to acquire license for using it? It is stated there that
it's free though.

"Josh" wrote:
to generate pdf use a library called itextsharp, search for it on google.
Its not exactly simple to get you head around, but it does work, I used it
on a number of occasions.
"wrytat" <wr****@discuss ions.microsoft. com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
I have a web application. There's 1 part whereby I'll show a list of items
(order). I did this by using classes and objects. I defined my own classes
(called orderitem and ordermanager), and my aspx file just call the
ordermanager to connect to the SQL 2000 server, perform stored procedure,
get
the required data and convert them into orderitem and push them into an
arraylist. Finally it will return this arraylist and my aspx file just
read
each orderitem in it and print their details out.

Now i want to put a checkbox beside every orderitem and then, after user
make their selection, they can press a "print to pdf" button to generate a
pdf file. Is that possible? It seems very difficult.


Nov 19 '05 #3

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

Similar topics

1
2951
by: Joris Kempen | last post by:
Hi people, I know that the question has come around sometimes: How to open an Access Report using ASP and export it to for example RTF. I'm trying to implement the first method of David Cline: http://www.15seconds.com/issue/981216.htm
11
6608
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
3
3411
by: mehul | last post by:
Hi, I am trying to use Active Reports v1.1 (Build 1.1.0.84) in a ASP.NET application. Is it possible to use it through the COM interlop as Crystal Reports for .NET which comes built in with VS.NET doesnt work properly. Rgs,
5
1379
by: RyanN | last post by:
Hello, I'm trying to teach myself OOP to do a data project involving hierarchical data structures. I've come up with an analogy for testing involving objects for continents, countries, and states where each object contains some attributes one of which is a list of objects. E.g. a country will contain an attribute population and another countries which is a list of country objects. Anyways, here is what I came up with at first:
25
11667
smithj14
by: smithj14 | last post by:
I have a form that has an option group (fraReports) which holds a list of reports to print. This part works fine. I select a report name and click print and that report opens. Now I want to add a text box to enter a service date that will open the selected report using the text box value (service date) to filter the report to only those dates. I have the field using the format "mmmm-yyyy" on all my forms and reports so it will show May-2009....
0
9718
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
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
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
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5544
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.