Results 1 to 6 of 6

Thread: printing from vb6 in windows 2000

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    netherlands
    Posts
    3
    i created a program in vb6 wich is printing several page's, now the program works fine under w95,w98,nt but under w2000 there seems to be a problem with the fonts.
    it print like this

    shut be:
    i wil use windows 2000

    it prints:
    o#eow#raq#eojhlea#5333

    This is not a actual translation but i hope you understand what i meen.

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Can you please show the code that you are using to print. It's also a possibility that you are trying to print a font that your win2k machine does not have. (check that) and if that doesn't solve it, then maybe if we look at the code we can see what's happening.

    Laterz,
    D!m
    Dim

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Exclamation Ummm

    It seems to put every ASCII character three places ahead.
    Every letter is three letters ahead than it should be (not in your example. But you said it's not an actual translation), every digit in 2000 is 3 digits ahead, and instead of spaces - Chr(32) - there are pound # marks - Chr(35).

    Don't know why or how to fix - just a speculation!

    Try telling it to print this, see if it prints right:

    "Qefp" & Chr(29) & "tlohp" & Chr(30)

    If I'm correct it would print:

    This works!

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    netherlands
    Posts
    3

    printing vb6 > windows 2000

    I'm printing in two way's, using the printer object
    like:
    printer.print "hello i'm"

    and i use the rtf box for printing rtf formatted text

    in both instances it prints the same way
    the font i'm using is arial that shut be there do'nt you think?


  5. #5
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    omg now that's what i call a guru, now that you mention it Yonatan it seems that you are right. I wonder why it's doing that...
    Dim

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    netherlands
    Posts
    3

    Question printing vb6 > windows 2000

    I thank you both for so far i got to leave now(dentist)
    when i'm back at my work i wil try to find out if it's trhu what Yonatan say's.

    Thanx!!!!

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