We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Save tables of a PDF as images

Thread ID:

Created:

Updated:

Platform:

Replies:

101166 Oct 3,2011 06:08 AM Oct 13,2011 05:05 AM ASP.NET Web Forms (Classic) 4
loading
Tags: PDF
Chloe Vuillet
Asked On October 3, 2011 06:08 AM

Hi,

I have created a Pdf document in which I draw several tables.
I have two issues :
1) how can I know where my first table ends in order to correctly place the second (i have a for loop that generetes the different tables)?
2)How can I save the table as images in order to place them in an email (in plus of attaching the PDF) ?

Thanks in advance,
clo


Geetha M [Syncfusion]
Replied On October 4, 2011 06:19 AM

Hi Clo,

Thank you for your interest in Syncfusion products.

1. Positioning tables:
You can draw the table relative to the position of the previous table by using the PdfLayoutResult class. Please check the following documentation for more details:
How To Add the Tables One After Another

2. It is not possible to save table as images.

Please try this and let me know if you have any questions.

Regards,
Geetha


Chloe Vuillet
Replied On October 12, 2011 10:16 PM

Thanks for your response.
The positionning of the next table works fine... unless my previous table ends in the next page!
-> I either get an exception saying "Can't draw table, because there is not enough space for it", either the table does draw itself putting the end in the next page but then how do I stay on this nexxt page for the next table?

I tried:
if (location.Y < locationtest.Y) page = doc.Pages.Add();
locationtest = location;

//where location is the bound result of my table and locationtest the bound result of the previous table, yet that puts me on the third page unstead of at the end of the table on the second page.

If i dont put this snippet then all the table get drawn on the first page on top of each other.

Thanks in advance
clo



Chloe Vuillet
Replied On October 13, 2011 04:42 AM

Nevermind, I was using the PdfLayoutResult instead of the Light Table one which was not giving me the result.Page.

Thanks


Geetha M [Syncfusion]
Replied On October 13, 2011 05:05 AM

Hi Clo,

Thank you for the update.

Please let us know if you have any other questions.

Regards,
Geetha


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;