473,795 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

convert aspx to pdf

iam using asp.net 2.0, and iam trying to convert the aspx page to
pdf. aspx page consints of some data comes from the database. i have
converter for html2pdf.but not able to use directly the aspx page,
because it has many asp controls.

is there any way to convert/ render the aspx page so i can get the
html and so it can pass to the web service.

Thanks in advance
Oct 30 '08 #1
3 18974
you have a couple options:

1) use webclient to fetch the aspx page, which will return rendered html,
that you can then convert to pdf via the tool of choice.
2) get a pdf writer library and write a aspx page or handler that renders
pdf directly
3) create a dynamic pdf document (pdf + javascript) that uses webservices
to fetch the database data.

-- bruce (sqlwork.com)
"po********@gma il.com" wrote:
iam using asp.net 2.0, and iam trying to convert the aspx page to
pdf. aspx page consints of some data comes from the database. i have
converter for html2pdf.but not able to use directly the aspx page,
because it has many asp controls.

is there any way to convert/ render the aspx page so i can get the
html and so it can pass to the web service.

Thanks in advance
Oct 30 '08 #2
See is this fits your requirement. A slight learning curve
http://www.pdfsharp.com/PDFsharp/ind...tpage&Itemid=1

Regards,

Trevor Benedict
MCSD

<po********@gma il.comwrote in message
news:47******** *************** ***********@t42 g2000hsg.google groups.com...
iam using asp.net 2.0, and iam trying to convert the aspx page to
pdf. aspx page consints of some data comes from the database. i have
converter for html2pdf.but not able to use directly the aspx page,
because it has many asp controls.

is there any way to convert/ render the aspx page so i can get the
html and so it can pass to the web service.

Thanks in advance

Oct 30 '08 #3
"bruce barker" <br*********@di scussions.micro soft.comwrote in message
news:10******** *************** ***********@mic rosoft.com...
You have a couple of options:
Or even three... :-)
2) Get a PDF writer library and write an aspx page or handler that renders
the PDF directly.
That would be my preferred option.

I use this: http://www.siberix.com/
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 31 '08 #4

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

Similar topics

14
3872
by: David C. Taylor | last post by:
I saw an article that described how to convert the query string into an Url without a query string and return the page. For example, this request: http://www.mywebsite.com/products.aspx?category=motherboard becomes something like this: http://www.mywebsite.com/motherboard.aspx
7
3400
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
3
2697
by: Thubaiti | last post by:
Hi, I have this code in my ASP.NET and I want to convert it to C# (code behind) <asp:Repeater id="subCategoryRepeater" runat="server"> <ItemTemplate> <ul> <li> <asp:HyperLink id="subCategoryHyperLink" runat="server" NavigateUrl='<%# "subcategory.aspx?subcategoryid=" +
3
3628
by: Zean Smith | last post by:
I wrote an ASPX web application and a C# Classes which compiled as a seperated DLLs. In my ASPX web app. I import that DLL as Reference. How do I convert those Classes to Web Services? is it easy? so that other ASPX web app can reuse my classes over the network. Is this possible? or do I have to rewrite the classes? Thanks a lot
6
14569
by: Tim Cartwright | last post by:
I have a page that has the login control on it, nothing else. This page inherits from a master page, neither page has any code in it. This page works perfectly when running on the WebDev debug web server. I am able to log in. However after publishing the page to my local IIS, it results in the below error. This error is occurring on the Visual Studio.Net 2k5 release version, but did not occur on the beta 2, same code. A point of interest, is...
5
6252
by: moondaddy | last post by:
I have a website that currently has all static htm pages and nothing will be dynamic for quite some time. This site is made up of a bunch of htm pages. is there any advantage or disadvantage of converting them to aspx pages? We are using VS 2005 and .net 2.0. Thanks. -- moondaddy@nospam.nospam
3
3157
by: shapper | last post by:
Hello, Could someone tell me how to convert a XML file into another XML file using a XSL file with a parameter? I created the code to do it, and it seems ok, but it is not working. Could somebody, please, help me out? I am on this for days. My code is as follows:
10
2922
by: Gary | last post by:
Hello, Anyone know how to do the following in c# - using inline codeblocks? <% If Request.Form("Name") = "Gary" Then %> <asp:RequiredFieldValidator ID="GarysValidation" ErrorMessage="Gary, you have chosen the wrong option<BR>" ControlToValidate="Name" Display="Dynamic" runat="server"></asp:RequiredFieldValidator>
1
3602
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
0
9672
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
10439
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...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9043
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...
1
7541
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
5437
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...
1
4113
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
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.