Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TX Text Control (3rd Party) Issue

Status
Not open for further replies.

Chad123

Programmer
Apr 11, 2003
52
CA
Hello,

I am having an issue with the TX Text Control. It is in fact third party, but I was hoping someone may be able to help... And Yes, I have already contacted the controls support...

They replied with the information that labels are not easily done with the txtextcontrol. Well, I have set it up so now it uses tables.

However, I am having an issue with cell sizes. I have the cells height/width determined by the size of the desired labels, which works great (gathered through a wizard by the user). The user enters their desired label information in a second txtextcontrol (in the wizard), which is later passed to the initial Label textcontrol. The problem is when the label information is passed to the initial label textcontrol – this information changes the size of the cell, which I need to stay the same size.

Is there a way I can gather the height of the text in twips so I can remove that number when passed to the final textcontrol – allowing the cell size to remain the same size as before the addition of text? Any other suggestions for this issue are welcome.

Thanks,
Chad Jones
 
Hi,

I use txtextcontrol.

No, you can't measure cell height. What I would do is not have a table at all. I would copy the text into the textcontrol, move to the first label position, print, move to the second print etc. You can 'move' the control by altering the margins. This

TX.PageMarginT = DINA4_Y / 2

is what I use to print the second of two A5 postcards on a sheet of A4.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top