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!

How to print Unicode text ??

Status
Not open for further replies.

prasadmokashi

Programmer
Oct 31, 2003
41
US
Hi,

I want to read from the text file which contains unicode characters & then print the whole thing using printer object in Visual basic.

But instead of actual unicode characters only question marks '?' getting printed.

I am sure I am reading the file correctly because if the same text read from the file is displayed in the unicode version of text box (i.e Forms 2.0 object lib) then it gets displayed correctly.

What I feel is the problem is to make printer object understand the unicode characters.

Can anybody please help ?
I have already investigated into this too much....but invain...

Thanks & Regards,
Prasad
 
You could convert them from unicode using
Code:
myVariant = StrConv(MyUnicode, vbFromUnicode)

and then push the MyVariant to the printer...

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Hi Matt,

Thank you for your response.

I have already tried that.
It didn't work.

Regards,
Prasad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top