From: Helge Haensel on
Hallo NG!
WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E
I am using the following code to print a document

Printer.EndDoc
Printer.Orientation = vbPRORLandscape
cdlStandard.ShowPrinter
Form2.Frame2.Visible = False
Form2.PrintForm
Printer.EndDoc
Form2.Frame2.Visible = True

Always the print comes in portrait orientation
and also the dialog ist mostly not shown.
I have an other big VB5-job, where landscaping
works! Also with Excel or Word printing is allright.
The printer is a hp970cxi with updated driver.
Any hints please?

Vy 73! Helge
--
Helge, DJ1WM
No eMails please
From: J French on
On Mon, 07 Aug 2006 11:16:27 +0200, "Helge Haensel"
<dj1wm(a)nurfuerspam.de> wrote:

>Hallo NG!
>WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E
>I am using the following code to print a document
>
> Printer.EndDoc
> Printer.Orientation =3D vbPRORLandscape
> cdlStandard.ShowPrinter
> Form2.Frame2.Visible =3D False
> Form2.PrintForm
> Printer.EndDoc
> Form2.Frame2.Visible =3D True
>
>Always the print comes in portrait orientation
>and also the dialog ist mostly not shown.
>I have an other big VB5-job, where landscaping
>works! Also with Excel or Word printing is allright.
>The printer is a hp970cxi with updated driver.
>Any hints please?

Mike Williams will pop up and explain that Form.PrintForm is a load of
rubbish and should never be used

I vaguely remember him saying that it overrides the orientation, but
regardless of that it has plenty of other drawbacks

If you search this and other related NGs you'll find that he has
posted a reliable way of printing Forms a fair number of times
From: Helge Haensel on
Am 07.08.2006, 11:27 Uhr, schrieb J French <erewhon(a)nowhere.uk>:

> On Mon, 07 Aug 2006 11:16:27 +0200, "Helge Haensel"
> <dj1wm(a)nurfuerspam.de> wrote:
>
>> Hallo NG!
>> WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E
>> I am using the following code to print a document
>>
>> Printer.EndDoc
>> Printer.Orientation =3D vbPRORLandscape
>> cdlStandard.ShowPrinter
>> Form2.Frame2.Visible =3D False
>> Form2.PrintForm
>> Printer.EndDoc
>> Form2.Frame2.Visible =3D True
>>
>> Always the print comes in portrait orientation
>> and also the dialog ist mostly not shown.
>> I have an other big VB5-job, where landscaping
>> works! Also with Excel or Word printing is allright.
>> The printer is a hp970cxi with updated driver.
>> Any hints please?
>
> Mike Williams will pop up and explain that Form.PrintForm is a load of
> rubbish and should never be used
>
> I vaguely remember him saying that it overrides the orientation, but
> regardless of that it has plenty of other drawbacks
>
> If you search this and other related NGs you'll find that he has
> posted a reliable way of printing Forms a fair number of times

Hi J
found some code of Mike (this NG, 29.06.2006) and made a *quick* try.
It looks very promising.
It does landscaping from the dialogbox. On the other hand: A selected
PDF-Printer prints to my hardware printer.
And how do I pass parameters to the printer. I have 300 cards to
and need the dialog just once. I think I have to dim them public and
paste them into Mikes's routine.
OK, great fun. Will continue testing/trying.
Helge
From: Helge Haensel on
Am 07.08.2006, 13:29 Uhr, schrieb Helge Haensel <dj1wm(a)nurfuerspam.de>:

> Am 07.08.2006, 11:27 Uhr, schrieb J French <erewhon(a)nowhere.uk>:
>
>> On Mon, 07 Aug 2006 11:16:27 +0200, "Helge Haensel"
>> <dj1wm(a)nurfuerspam.de> wrote:
>>
>>> Hallo NG!
>>> WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E
>>> I am using the following code to print a document
>>>
>>> Printer.EndDoc
>>> Printer.Orientation =3D vbPRORLandscape
>>> cdlStandard.ShowPrinter
>>> Form2.Frame2.Visible =3D False
>>> Form2.PrintForm
>>> Printer.EndDoc
>>> Form2.Frame2.Visible =3D True
>>>
>>> Always the print comes in portrait orientation
>>> and also the dialog ist mostly not shown.
>>> I have an other big VB5-job, where landscaping
>>> works! Also with Excel or Word printing is allright.
>>> The printer is a hp970cxi with updated driver.
>>> Any hints please?
>>
>> Mike Williams will pop up and explain that Form.PrintForm is a load of
>> rubbish and should never be used
>>
>> I vaguely remember him saying that it overrides the orientation, but
>> regardless of that it has plenty of other drawbacks
>>
>> If you search this and other related NGs you'll find that he has
>> posted a reliable way of printing Forms a fair number of times
>
> Hi J
> found some code of Mike (this NG, 29.06.2006) and made a *quick* try.
> It looks very promising.
> It does landscaping from the dialogbox. On the other hand: A selected
> PDF-Printer prints to my hardware printer.
> And how do I pass parameters to the printer. I have 300 cards to
> and need the dialog just once. I think I have to dim them public and
> paste them into Mikes's routine.
> OK, great fun. Will continue testing/trying.
> Helge

And when using landscaping the box of the given fox-example extends to the
total length of the page.
Helge

From: Helge Haensel on
Am 07.08.2006, 13:51 Uhr, schrieb Helge Haensel <dj1wm(a)nurfuerspam.de>:


>>> Mike Williams will pop up and explain that Form.PrintForm is a load of
>>> rubbish and should never be used
>>>
>>> I vaguely remember him saying that it overrides the orientation, but
>>> regardless of that it has plenty of other drawbacks
>>>
>>> If you search this and other related NGs you'll find that he has
>>> posted a reliable way of printing Forms a fair number of times
>>
>> Hi J
>> found some code of Mike (this NG, 29.06.2006) and made a *quick* try.
>> It looks very promising.
>> It does landscaping from the dialogbox. On the other hand: A selected
>> PDF-Printer prints to my hardware printer.
>> And how do I pass parameters to the printer. I have 300 cards to
>> and need the dialog just once. I think I have to dim them public and
>> paste them into Mikes's routine.
>> OK, great fun. Will continue testing/trying.
>> Helge
>
> And when using landscaping the box of the given fox-example extends to
> the
> total length of the page.
> Helge
>
Mike did a great job with his code and i have my problems with it
What is the replacement for MS VB5 statement 'Form2.Printform' in
Mikes code. I need to print different forms - of course with all its
controls.
Helge

 |  Next  |  Last
Pages: 1 2 3 4 5 6 7
Prev: EjectNtmsMedia
Next: MSCOMM and Binary