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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

table length more than one page

Thread ID:

Created:

Updated:

Platform:

Replies:

45634 Jun 26,2006 02:30 PM UTC Jul 4,2006 07:47 PM UTC WinForms 10
loading
Tags: PDF
Liat
Asked On June 26, 2006 02:30 PM UTC

Hi! I am trying to ''publish'' a long table using the properties: table.PageBreakBehavior = AutoBreakBehavior.FullBreak; table.RepeatHeader = true; the part of the table that fits in the first page is ok. but the part that left in the next page is shown twice - the first time in the next page as it should be, and another time in the first page. do you have any solution for this? thanks Liat

Administrator [Syncfusion]
Replied On June 26, 2006 02:55 PM UTC

Hi Liat, I am afraid, I was unable to reproduce the issue. I used the following test sample to test your issue. Sample : InsertTables.zip Can you please take a look at the sample and let me know if you still have the same sample if so can you modify the sample or explain me in more detail so that I can reproduce the issue and this would help me to further investigate on the issue. Thanks, Ajish.

Liat
Replied On June 27, 2006 07:40 AM UTC

Hi Ajish I added the rows before the table.publish call: PDFDocument dummydoc = new PDFDocument(); SizeF tablesize = table.Publish(tableLocation,dummydoc.LastPage); I need the size of the table in order to align the whole table to the right side of the document (x=pageWidth-tableSize.Width). after i add these two lines, the second page in your example is rewriten. Thanks Liat > >Hi Liat, > >I am afraid, I was unable to reproduce the issue. I used the following test sample to test your issue. > > >Sample : InsertTables.zip > >Can you please take a look at the sample and let me know if you still have the same sample if so can you modify the sample or explain me in more detail so that I can reproduce the issue and this would help me to further investigate on the issue. > >Thanks, >Ajish. >

Administrator [Syncfusion]
Replied On June 27, 2006 10:54 AM UTC

Hi Liat, Here is a modified sample which Right aligns the table. Sample: InsertTables.zip Can you take a look at the sample and let me know if have some problems in this approach, if so can you modify the sample attached and send me. So that I can reproduce the issue and further investigate on this. Thanks, Ajish.

Liat
Replied On June 27, 2006 11:57 AM UTC

Hi Ajish Thanks, that helped. in the mean time, i encountered another problem - a rectangle with length of more than one page. the code i tried is: PDFDocument pdfDoc = new PDFDocument(); pdfDoc.AutoCreatePages = true; IPDFGraphicState props=pdfDoc.CreateGraphicState(); props.BreakBehavior = AutoBreakBehavior.FullBreak; pdfDoc.Graphics.DrawRectangle(0,0,400,800,props); this does not behave as expected... thanks Liat

Liat
Replied On June 28, 2006 08:40 AM UTC

Hi another issue... when the table length is more than one page, the table size returned by publish() is not accurate. I added these lines to your expample: SizeF tablesize = table.Publish(tableLocation,pdfDoc.LastPage); RectangleF rect = new RectangleF(50,tablesize.Height,20,20); pdfDoc.Graphics.DrawRectangle(rect); You will see that the rectangle is drawn before the table ends. Thanks Liat >Hi Ajish >Thanks, that helped. >in the mean time, i encountered another problem - a rectangle with length of more than one page. >the code i tried is: >PDFDocument pdfDoc = new PDFDocument(); >pdfDoc.AutoCreatePages = true; >IPDFGraphicState props=pdfDoc.CreateGraphicState(); >props.BreakBehavior = AutoBreakBehavior.FullBreak; >pdfDoc.Graphics.DrawRectangle(0,0,400,800,props); > >this does not behave as expected... > >thanks >Liat

Administrator [Syncfusion]
Replied On June 28, 2006 09:01 PM UTC

Hi Liat, Regarding the table height issue I was able to reproduce the issue. I have consulted the development team regarding this issue, I will send you an update as soon as hear back Please let me know if you have any questions. Thanks, Ajish.

Liat
Replied On June 29, 2006 07:34 AM UTC

Thanks, in the mean time i found a way to calculate the size by myself... what about the rectangle drawing issue? isn''t it possible to draw a rectangle which continues to the next page? (the temporary solution i found is to check each time before drawing if there is anough space in the document). Thanks Liat

Ajish [Syncfusion]
Replied On June 29, 2006 11:14 PM UTC

Hi Liat, Currently it is not possible to split rectangle that spans for next page.I have created a feature request regarding this issue you can track the status of this issue from the following link. http://www.syncfusion.com/support/features/pdf/Default.aspx?ToDo=view&questId=1036 Please let me know if you any other questions. Thanks, Ajish.

Liat
Replied On July 4, 2006 07:50 AM UTC

Hi Ajish I discovered that my calculation of the table height does not work in case that the row AutoHeight value is true... Is there any progress in this matter? Thanks Liat >Hi Liat, > >Regarding the table height issue I was able to reproduce the issue. I have consulted the development team regarding this issue, I will send you an update as soon as hear back > >Please let me know if you have any questions. > >Thanks, >Ajish.

Ajish [Syncfusion]
Replied On July 4, 2006 07:47 PM UTC

Hi Liat, Sorry for the inconvenience. I will send you an update regarding as soon as possible. Thanks, Ajish.

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.

Warning Icon 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.Close Icon

;