Results 1 to 3 of 3

Thread: strange problem about printing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2011
    Posts
    214

    strange problem about printing

    hi friends ,I have a problem about printing which I 'm not sure is about coding!

    the problem is when I print something from vb6 for examle;

    private sub cmdprint()

    printer.print "hi there"

    printer.enddocs

    end sub


    quality of the print is really awful,it's blur ,some colors dont appear and .....

    (even when printer is set to its best quality)

    but when I print other things such as .pdf or .doc ,quality is really good.

    what do you think about my problem?


    thank you so much

  2. #2
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: strange problem about printing

    that is odd

    have you checked the default printer properties as found in the printer settings

    printer.print uses the default printer with default settings other things can alter the settings as they print

    just a thought

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: strange problem about printing

    at a guess i would say that it is the default font that is used
    probably looks similar if you print something from notepad
    try changing the font first

    vb Code:
    1. printer.font.name = "Arial"
    2. printer.print "This is a test"
    3. printer.enddoc
    unless you set a print position that will print right in the top left corner
    setting out a page to print takes a few more lines of code, often several lines of code to each line of print
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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