I am using Visual Basic to align the text of strings which often consist of different fonts. I am trying to generate a table inside a Word doc using this data.
The first part of each string consists of numerals. The second part of the string consists of Japanese characters and the third part consists of English characters.
These changes in fonts cause vertical alignment to be difficult. I need a method to ensure proper verticle alignment of the English portion of each string. In other words, I want to change this:
3.1.3.1 CPC コネクタ UNTESTED UNTESTED
3.1.4.2 バッテリチャージ (80 to 100 %) UNTESTED UNTESTED
3.1.6.4 VGA 出力試験 UNTESTED UNTESTED
3.1.8.4 ビデオオーバーレイ試験(図4) UNTESTED UNTESTED
3.1.9.3 MP3 UNTESTED UNTESTED
3.1.10.1 CPUバッテリ交換 UNTESTED UNTESTED
Into this:
3.1.3.1 CPC コネクタ UNTESTED UNTESTED
3.1.4.2 バッテリチャージ (80 to 100 %) UNTESTED UNTESTED
3.1.6.4 VGA 出力試験 UNTESTED UNTESTED
3.1.8.4 ビデオオーバーレイ試験(図4) UNTESTED UNTESTED
3.1.9.3 MP3 UNTESTED UNTESTED
3.1.10.1 CPUバッテリ交換 UNTESTED UNTESTED
I am using Visual Basic 6.5.
I tried using the TextWidth() method in the Form that prints out these strings however this method is not available: I don't see it inside the list of methods of the Form's class.
The first part of each string consists of numerals. The second part of the string consists of Japanese characters and the third part consists of English characters.
These changes in fonts cause vertical alignment to be difficult. I need a method to ensure proper verticle alignment of the English portion of each string. In other words, I want to change this:
3.1.3.1 CPC コネクタ UNTESTED UNTESTED
3.1.4.2 バッテリチャージ (80 to 100 %) UNTESTED UNTESTED
3.1.6.4 VGA 出力試験 UNTESTED UNTESTED
3.1.8.4 ビデオオーバーレイ試験(図4) UNTESTED UNTESTED
3.1.9.3 MP3 UNTESTED UNTESTED
3.1.10.1 CPUバッテリ交換 UNTESTED UNTESTED
Into this:
3.1.3.1 CPC コネクタ UNTESTED UNTESTED
3.1.4.2 バッテリチャージ (80 to 100 %) UNTESTED UNTESTED
3.1.6.4 VGA 出力試験 UNTESTED UNTESTED
3.1.8.4 ビデオオーバーレイ試験(図4) UNTESTED UNTESTED
3.1.9.3 MP3 UNTESTED UNTESTED
3.1.10.1 CPUバッテリ交換 UNTESTED UNTESTED
I am using Visual Basic 6.5.
I tried using the TextWidth() method in the Form that prints out these strings however this method is not available: I don't see it inside the list of methods of the Form's class.