Print Page | Close Window

Using <br> in DrawHTMLTextBox()

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1885
Printed Date: 29 Sep 24 at 12:29AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Using <br> in DrawHTMLTextBox()
Posted By: einar
Subject: Using <br> in DrawHTMLTextBox()
Date Posted: 11 Jul 11 at 2:09PM
I am creating a PDF and are displaying a memo-field with DrawHTMLTextBox(). In the memo-field I replace all CHR(13) with "<br>" to get the hard line breaks. But when having two "<br>" and no text between, like "<br><br>" I get only one line break and no blank line. I have version 7.21. How do I fix this?



Replies:
Posted By: Ingo
Date Posted: 11 Jul 11 at 9:54PM
Hi Einar!

You don't need a fix for this.
This is normal behavior on html-pages.
Put a space before each single <br> then it will work.

Cheers, Ingo


Posted By: einar
Date Posted: 12 Jul 11 at 7:28AM
I tried a space as in Chr(32)  in front of <br>, but got no extra linebreak using  <br> <br>. I checked ordinary HTML and found it to make a break for each <br> using IE. But I found a solution by using &nbsp; in front of each <br>
 
Thanks
Einar



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk