RTF & ADDTABLE (OpenInsight 32-bit Specific)
At 02 JAN 2004 03:08:17AM Barry Stevens wrote:
OIPI
I would like to be able to set a cell to a specfic colour.
I am tryinh to use ENABLERTF, then ADDTABLE where I have tried
{\cb\red} as cell data, but it wont work.
I now notice that {\red TEST} doesnt work, but {\b TEST} does (also the underline & subsript etc. is OK)
Should the background and colour stuff be working. V4.13a
Is there another way to do this, even shaded (I know I can use addtable to overprint with shading settings but this will be cumbersome to control as it is data driven).
At 05 JAN 2004 04:48PM Tony Splaver wrote:
Hi Barry,
I do not think ENABLERTF works with the ADDTABLE. I also tried using the TEXTRTF and INIT to load the RTF for disk with a RTF doc from WordPad and Word, but the cell shading (colors) were lost. I think the ability to put shading in the cells is not available due to limitations in the VSPRINT.OCX.
An ugly work-around is to use ADDTABLE to create one cell at a time and then you can use the background color of ADDTABLE, but this would be very slow and a pain to code.
It may be possible to use the latest version of VSPRINTER.OCX (version 8.0), and it may support this feature. However, I do not know if version 8.0 is compatible with the OIPI.
Tony
At 06 JAN 2004 03:17AM Barry Stevens wrote:
Tony,
OK, thanks.
I was aware of the work around and have done it once, one fixed cell only so it wasnt too bad.
The RTF is good for other fancy cell formatting though…real cool.
I will try a new VSPRINT.OCX as see what blows up
Barry
At 06 JAN 2004 03:47AM Barry Stevens wrote:
Ok, I give up.
Where do I find, I assume, vsprint8.ocx.
I can find references but no actual download.
Ummm sorry, but then what do I do with it . There is a vsprint7.ocx file in the OI dir. I was expecting vsprint.ocx and just overwrite…(as you can see I know nothing about how ocx works)
Baz
At 06 JAN 2004 10:50AM Bob Carten wrote:
OCX is usually self-registering.
A way to inspect them is to use the Excel VBA editor.
That is,
Start Excel
Navigate to tools,macros, visual basic editor
In the vba editor,
Navigate to tool, References,
Get a dialog box
Click Browse, Get Common File Dialog Box
Change file type from type library to OCX
Navigate to your OCX, choose it.
OK the Dialogs till you're back in the editor.
Find the Object Browser on the toolbar, use that to inspect the
object you just selected.
You get a weak idea of the names of the objects, like VsPrinter7.VsPrinter, and a good idea of the methods and properties.
Touching the OCX like this should trigger making the registry entries, I think.
HTH
Bob
At 06 JAN 2004 03:23PM Tony Splaver wrote:
Go to http://www.componentone.com, then click Downloads on top banner, then select ActiceX Components, then select VSView 8, and download. The setup disk should register the OCX.