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.

SplitTextLines problem

Thread ID:

Created:

Updated:

Platform:

Replies:

100111 Jul 5,2011 10:40 AM Jul 6,2011 08:41 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Alek
Asked On July 5, 2011 10:40 AM

Hi all,

i have problem with SplitTextLines property,

here is the sample code i use:

Using htmlconverter As New HtmlConverter()
htmlconverter.AutoDetectPageBreak = True
htmlconverter.EnableHyperlinks = True
'Renders html from the string to image.
Dim mf As New PdfMetafile(TryCast(htmlconverter.FromString(sourceStr, HttpContext.Current.Server.MapPath("./export/") & fileName & ".html", ImageType.Metafile, CInt(Math.Truncate(width * 1.3)), -1, AspectRatio.KeepWidth), Metafile))
mf.Quality = 100

Dim format As New PdfMetafileLayoutFormat()
format.Break = PdfLayoutBreakType.FitPage
format.Layout = PdfLayoutType.Paginate
format.SplitTextLines = False
format.SplitImages = False

'Draws the image.
mf.Draw(page, New PointF(0, 0), format)
End Using

as you can see i am setting format.SplitTextLines = False but whenever i have a page break there can be a split in text on two pages

here is the sample HTML generated by the aspx:



3 *



the span element somethimes is split between pages




Geetha M [Syncfusion]
Replied On July 6, 2011 08:41 AM

Hi Alek,

Thank you for your interest in Syncfusion products.

Page break and SplitText are two different functionalities. If you want to avoid moving to next page during page break, please set AutoDetectPageBreak to false.

htmlconverter.AutoDetectPageBreak = False

Please try this and let me know if you have any 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.

;