Printing in visual basic 6 question
Hello
I want to print some text in visual basic. But im from Poland and in my language we use characters like ź, ć, ż, ś, ł, รณ... so if i want to print words with that letters in this place are other characters...
How can i change it for printing in my language?
Re: Printing in visual basic 6 question
You either have to have a font with those charaters installed and use that font, or have the language support for it installed in Windows (Control Panel > Regional Options > Input Languages)
Re: Printing in visual basic 6 question
Quote:
Originally Posted by
baja_yu
You either have to have a font with those charaters installed and use that font, or have the language support for it installed in Windows (Control Panel > Regional Options > Input Languages)
But i use this font in my form example in label or textbox and its ok... i just must change script in control (font options for middle europe) then works fine. Im wondering how to change it in printing procedure by code.
Re: Printing in visual basic 6 question
Quote:
Originally Posted by
Breathless
...i just must change script in control (font options for middle europe) then works fine. Im wondering how to change it in printing procedure by code.
Please try to say that again in a different way.
Re: Printing in visual basic 6 question
I think he says that he can type the characters (already has keyboard input languages installed) but is wondering how to print them. In that case it depends on how you actually print, it's hard to say without seeing any code. Can you post the code you use to print?
Re: Printing in visual basic 6 question
Quote:
Originally Posted by
MartinLiss
Please try to say that again in a different way.
When i change in label or in textbox like this:
http://img535.imageshack.us/img535/7...ytuulfi.th.png
Uploaded with ImageShack.us
then its ok. But when i printing it by code its not...
Quote:
Originally Posted by
baja_yu
I think he says that he can type the characters (already has keyboard input languages installed) but is wondering how to print them. In that case it depends on how you actually print, it's hard to say without seeing any code. Can you post the code you use to print?
Yes, exactly. In visual basic code i have those letters but when i try to print it there are problems.
I use normal code for printing, nothing complicated:
Code:
Printer.FontName = "Segoe UI"
Printer.FontSize = 8
Printer.Print "żźćśąśł"
Printer.EndDoc
Re: Printing in visual basic 6 question
We might need to know the make and model of your printer. Windows will send a number to the printer that represents the character. You probably have to set up the printer font to match as most just use a default unless told otherwise.