Is there a way to print subscript in a cell ?
I did try the following:
MyVSRow0.AddCell( "CuSO<sub>4</sub>" )
The result is printing the tag instead of the subscript. On that cell, it printed out CuSO<sub>4</sub>.
Thanks,
Wendy
Printing subscript in a cell
Re: Printing subscript in a cell
Support · Jan 14, 2008Hello Wendy,
You can add a FormattedTextArea to the cell of a table and you can add the subcript tag to the FormattedTextArea without any problem.
Thanks,
ceTe Software Support Team.
Re: Printing subscript in a cell
Forum member · Jan 14, 2008I tried the following:
Set MyHemo = MyVSRow0.AddCell( "" )
cu = "CuSO<sub>4</sub>"
Set MyHemoCell = MyHemo.SetFormattedTextArea(cu, 0, 0, 65, 35, DPDF_FontFamily_Helvetica, 10, False )
The error:
Invalid character on the line of "Set MyHemoCell = MyHemo.SetFormattedTextArea(cu, 0, 0, 65, 35, DPDF_FontFamily_Helvetica, 10, False )", column 3.
What is wrong with the above code ?? Please help.
Thanks,
Wendy
Re: Printing subscript in a cell
Support · Jan 14, 2008Hello Wendy,
What you are trying to achieve can be done using code similar to this:
Dim cu
Dim MyHemo
cu = "CuSO<sub>4</sub>"
Set MyHemo = MyVSRow0.AddCell()
MyHemo.SetFormattedTextArea cu, 0, 0, 65, 35, DPDF_FontFamily_Helvetica, 10, False
Also, we have a complete example in our Help Library that also demonstrates adding many page elements to a Table:
http://www.DynamicPDF.com/Support/COM_Help_Library_07_05/html/Adding%20Page%20Elements%20to%20Cells.html
Please let us know if you have any further questions.
Thanks,
ceTe Software Support Team