Print a String with partly Black Background

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Print a String with partly Black Background

Postby KHentschel » Fri Mar 18, 2011 4:28 pm

Hello,

how could it be possible to Print a String with partly Black Background. For example i have the string 0123456789 and here i want to fill the part 567 with a black background and white foreground. Could anybody give me an assistance?

Many thanks...

Klaus
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: Print a String with partly Black Background

Postby IDEAL Software Support » Fri Mar 18, 2011 7:55 pm

Use Rich Text (RTF). Using RTF you can set the forground and background color of each character. RTF is supported by the Professional Edition or higher.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Print a String with partly Black Background

Postby KHentschel » Sun Mar 20, 2011 12:25 pm

thank you, this works fine...

but i do not understand how to build the colortable. i found out that the index 1 = black and index 5 = white (in default). but how to change this in an activex enviroment?
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: Print a String with partly Black Background

Postby IDEAL Software Support » Mon Mar 21, 2011 1:49 pm

The color table can be either specified by using RTF keywords in your RTF string, or you can modify it by calling the method SetRTFColor().
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Print a String with partly Black Background

Postby KHentschel » Mon Mar 21, 2011 2:59 pm

Many Thanks for your support... now i have found (also in the Docu)
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 20 guests

cron