473,396 Members | 1,784 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,396 software developers and data experts.

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 18938
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********@gmail.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********@gmail.comwrote in message
news:47**********************************@t42g2000 hsg.googlegroups.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*********@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.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
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: ...
7
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
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...
3
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...
6
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...
5
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...
3
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...
10
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,...
1
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...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.