|
-
May 19th, 2010, 02:36 PM
#1
Thread Starter
Member
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?
-
May 19th, 2010, 03:04 PM
#2
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)
-
May 19th, 2010, 05:39 PM
#3
Thread Starter
Member
Re: Printing in visual basic 6 question
 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.
-
May 19th, 2010, 05:48 PM
#4
Re: Printing in visual basic 6 question
 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.
-
May 19th, 2010, 05:55 PM
#5
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?
-
May 20th, 2010, 12:45 AM
#6
Thread Starter
Member
Re: Printing in visual basic 6 question
 Originally Posted by MartinLiss
Please try to say that again in a different way.
When i change in label or in textbox like this:

Uploaded with ImageShack.us
then its ok. But when i printing it by code its not...
 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
-
May 20th, 2010, 12:25 PM
#7
Hyperactive Member
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.
Slower than a crippled Vista
More buggy than a fresh XP install
Look! Down the road, some 50 miles behind the drunken snail.
It's Ubuntu!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|