|
-
Dec 31st, 2011, 03:25 AM
#1
Thread Starter
Addicted Member
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
-
Dec 31st, 2011, 06:57 AM
#2
Frenzied Member
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
-
Dec 31st, 2011, 10:46 PM
#3
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:
printer.font.name = "Arial" printer.print "This is a test" 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|