Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3780

DrawText extension with HTML subset?

$
0
0

I am converting a Microsoft Access application that used VBA and the Debenu (now Foxit) PDF library for some reports. The Debenu library had a DrawHTMLText function that would style text based on a small subset of HTML. For example:

DrawHTMLText(left, top, width, "This is <b>bold</b> and this is <i>italic</i> text")
would print

This is bold and this is italic text

The function would also word wrap the text based on the width parameter.

I have searched the forum and have not found anything like this. Has anyone done anything similar? Does anyone have a suggestion for another approach to accomplish this?

Perhaps extending the DrawText method would be a way to do that? Any suggestions on how to approach that?

Thanks,

Dennis

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3780

Trending Articles