From: Mr. X. on
Hello.
I have VB.6.
I am user printer object to print.
When I am printing from VB. 6 (from the IDE), the printed report is fine,
but when outside (same exe, same printer), printing is not ok (it seems out
of range, because I am using currentX and currentY attributes.

I there any know problem about, or should I reset printer before printing ?

Thanks :)


From: Mr. X. on
Here is some of my relevant code :
------------------------------------
SaveY as integer
SaveY = Printer.CurrentY
Printer.Orientation = vbPRORPortrait
Printer.RightToLeft = True
Printer.FontName = "Miriam Fixed"

Printer.ScaleMode = vbCharacters
printer.CurrentY = SaveY
Printer.CurrentX = 0
Printer.Print "column 1"

printer.CurrentY = SaveY
Printer.CurrentX = 24
Printer.Print "column 2"
....


Printer.EndDoc


I don't know why - when printing from VB.6. printing is OK,
otherwise I cannot see what I am printing (10 pages instead of 3)
Thanks :)


From: Mr. X. on
The major problem, is that every column is printed on seperated page (only
outside VB), and not at the same one.
Why ?

Thanks :)


From: Jan Hyde (VB MVP) on
"Mr. X." <nospam(a)no_spam_please.com>'s wild thoughts were
released on Fri, 27 Jun 2008 01:09:19 -0700 bearing the
following fruit:

>Hello.
>I have VB.6.
>I am user printer object to print.
>When I am printing from VB. 6 (from the IDE), the printed report is fine,
>but when outside (same exe, same printer), printing is not ok (it seems out
>of range, because I am using currentX and currentY attributes.
>
>I there any know problem about, or should I reset printer before printing ?
>
>Thanks :)
>

Are you running the executable on the same PC as the IDE?
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
From: Jan Hyde (VB MVP) on
"Mr. X." <nospam(a)no_spam_please.com>'s wild thoughts were
released on Fri, 27 Jun 2008 01:09:19 -0700 bearing the
following fruit:

>Hello.
>I have VB.6.
>I am user printer object to print.
>When I am printing from VB. 6 (from the IDE), the printed report is fine,
>but when outside (same exe, same printer), printing is not ok (it seems out
>of range, because I am using currentX and currentY attributes.
>
>I there any know problem about, or should I reset printer before printing ?
>
>Thanks :)
>

This may or may not be relevant but...

http://support.microsoft.com/kb/173074
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde