Results 1 to 7 of 7

Thread: Printing in visual basic 6 question

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    62

    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?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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)

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    62

    Re: Printing in visual basic 6 question

    Quote Originally Posted by baja_yu View Post
    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.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Printing in visual basic 6 question

    Quote Originally Posted by Breathless View Post
    ...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.

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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?

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    62

    Re: Printing in visual basic 6 question

    Quote Originally Posted by MartinLiss View Post
    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...


    Quote Originally Posted by baja_yu View Post
    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

  7. #7
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    280

    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
  •  



Click Here to Expand Forum to Full Width