Less than charater

Less than charater

Forum member · May 2, 2007
I am seeing the following bug when calling AddTextArea(). If I pass in text with a '<' (less than) symbol followed by any text the symbol and the text that follows the symbol will not render. ex: 'xxxx<yyyy' the '<yyyyy' will not render. Thanks for the support robert

Re: Less than charater

Support · May 2, 2007
Hello Robert, We are not able to recreate the behavior on our end. Adding the less than sign between a string displayed the '<' symbol perfectly fine. Following is the code I used for testing: <% ' Create a PDF Document Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) Dim MyPage Set MyPage = MyDocument.AddPage() Dim MyTextArea ' Create a text area Set MyTextArea = MyPage.AddTextArea( "This is the<underlined text of a TextArea", 100, 100, 400, 30, , DPDF_Font_HelveticaBoldOblique, 18, "483D8B" ) ' Draw the PDF MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %> If you continue experiencing the problem, please send over the code to our [^a|mailto:support@cete.com|Support Team^] and they can take a look into it. Thanks, ceTe Software Support Team

Re: Less than charater

Forum member · May 2, 2007
Opps! I realize that the function call is for AddFormattedTextArea() not AddTextArea(). Thanks for the prompt attention. Robert

Re: Less than charater

Support · May 3, 2007
Hello Robert, You can use the following syntax to add '<' symbol between formatted text: Dim MyFormattedText MyFormattedText = "xxxx<<&lt>yyyy" Dim MyFormattedTextArea Set MyFormattedTextArea = MyPage.AddFormattedTextArea( MyFormattedText, 0, 0, 256, 400, DPDF_FontFamily_Helvetica, 12, False ) Thanks, ceTe Software Support Team

Re: Less than charater

Forum member · May 9, 2007
When I place the text "xxxx<<<>yyyy" into: AddFormattedTextArea( "xxxx<<<>yyyy", 20, 360, 435, 72, MyFontFamily, 72, false ) I get exactly "xxxx<<<>yyyy" as my output. I expected to get "xxxx<yyyy" I need to place just a "<".

Re: Less than charater

Support · May 9, 2007
Hello, You can get "xxxx<yyyy" using the line below: AddFormattedTextArea( "xxxx<<&lt>yyyy", 20, 360, 435, 72, MyFontFamily, 72, false ) Thanks, ceTe Software Support Team

Re: Less than charater

Forum member · May 9, 2007
This is not the result I am getting. I get the output "xxxx<<<>yyyy" when I use the following code: MyPage1.AddFormattedTextArea( "xxxx<<<>yyyy", 20, 360, 435, 72, MyFontFamily, 72, false )

Re: Less than charater

Support · May 9, 2007
Hello, Our forum editor is treating the "& lt" without spaces as &lt when displayed visually. Use the below line of code but without any space between l and t: AddFormattedTextArea( "xxxx<<&l t>yyyy", 20, 360, 435, 72, MyFontFamily, 72, false ) If you want, send an email to our [^a|mailto:support@cete.com|Support Team^] and they can send you the exact line of code. Thanks, ceTe Software Support Team

Re: Less than charater

Forum member · May 9, 2007
Thank you for the clarification. That worked. I appreciate the prompt response. Keep up the good work. Robert