Hi. I have a VFP6 application, with manually generated reports that
sometimes need to be printed landscape. Question. Is there any way to
force PRTINFO(1) = 1 for my report then back to 0?

Couple of months ago I was given a solution of using =SYS(1037) and
KEYBOARD "{tab}{tab}{tab}{tab}a{enter}" CLEAR to switch to landscape.
Once I figured out I needed to first SET PRINT NAME to the desired
printer first, works pretty good. But I've seen situations where
KEYBOARD "{tab}{tab}{tab}{tab}o{enter}" CLEAR didn't return the user to
portrait, so it's not foolproof. Report frx files can switch back and
forth to landscape mode, how do they do it?

RE: Landscape output by Leemi

Leemi
Wed Oct 05 14:57:46 CDT 2005

Hi Dennis:

The easiest way to switch between portrait and landscape is to modify the
report file itself. See this article:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;133163

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Hi. I have a VFP6 application, with manually generated reports that
>sometimes need to be printed landscape. Question. Is there any way to
>force PRTINFO(1) = 1 for my report then back to 0?

>Couple of months ago I was given a solution of using =SYS(1037) and
>KEYBOARD "{tab}{tab}{tab}{tab}a{enter}" CLEAR to switch to landscape.
>Once I figured out I needed to first SET PRINT NAME to the desired
>printer first, works pretty good. But I've seen situations where
>KEYBOARD "{tab}{tab}{tab}{tab}o{enter}" CLEAR didn't return the user to
>portrait, so it's not foolproof. Report frx files can switch back and
>forth to landscape mode, how do they do it?


Re: Landscape output by Dennis

Dennis
Wed Oct 05 16:54:44 CDT 2005

Thanks for the reply. There is no report file. Text is sent via SET
PRINT TO NAME, SET PRINT ON, ??? text, SET PRINT OFF.

"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:dYJKRceyFHA.3020@TK2MSFTNGXA01.phx.gbl...
> Hi Dennis:
>
> The easiest way to switch between portrait and landscape is to modify
> the
> report file itself. See this article:
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;133163
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
> http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
> http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/gp/lifeselectindex
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
>>Hi. I have a VFP6 application, with manually generated reports that
>>sometimes need to be printed landscape. Question. Is there any way
>>to
>>force PRTINFO(1) = 1 for my report then back to 0?
>
>>Couple of months ago I was given a solution of using =SYS(1037) and
>>KEYBOARD "{tab}{tab}{tab}{tab}a{enter}" CLEAR to switch to landscape.
>>Once I figured out I needed to first SET PRINT NAME to the desired
>>printer first, works pretty good. But I've seen situations where
>>KEYBOARD "{tab}{tab}{tab}{tab}o{enter}" CLEAR didn't return the user
>>to
>>portrait, so it's not foolproof. Report frx files can switch back and
>>forth to landscape mode, how do they do it?
>



Re: Landscape output by Gene

Gene
Wed Oct 05 17:31:58 CDT 2005

On Wed, 5 Oct 2005 15:35:45 -0400, "Dennis Allen"
<dennis@dennisallen.com> wrote:

>Hi. I have a VFP6 application, with manually generated reports that
>sometimes need to be printed landscape. Question. Is there any way to
>force PRTINFO(1) = 1 for my report then back to 0?
>
>Couple of months ago I was given a solution of using =SYS(1037) and
>KEYBOARD "{tab}{tab}{tab}{tab}a{enter}" CLEAR to switch to landscape.

That was me.

>Once I figured out I needed to first SET PRINT NAME to the desired
>printer first, works pretty good. But I've seen situations where
>KEYBOARD "{tab}{tab}{tab}{tab}o{enter}" CLEAR didn't return the user to
>portrait, so it's not foolproof. Report frx files can switch back and

Yes, if the window gets messed with during the brief time that
the dialog box is open.

>forth to landscape mode, how do they do it?

Sincerely,

Gene Wirchenko


Re: Landscape output by Leemi

Leemi
Thu Oct 06 16:28:23 CDT 2005

Hi Dennis:

Can you sent a printer control code to set the printer to landscape? See
http://support.microsoft.com/default.aspx?scid=KB;EN-US;99595

Another option is to convert your report to VFP style FRX files. Is this
possible?

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


Thanks for the reply. There is no report file. Text is sent via SET
PRINT TO NAME, SET PRINT ON, ??? text, SET PRINT OFF.

"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:dYJKRceyFHA.3020@TK2MSFTNGXA01.phx.gbl...
> Hi Dennis:
>
> The easiest way to switch between portrait and landscape is to modify
> the
> report file itself. See this article:
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;133163
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
> http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
>
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/gp/lifeselectindex
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
>>Hi. I have a VFP6 application, with manually generated reports that
>>sometimes need to be printed landscape. Question. Is there any way
>>to
>>force PRTINFO(1) = 1 for my report then back to 0?
>
>>Couple of months ago I was given a solution of using =SYS(1037) and
>>KEYBOARD "{tab}{tab}{tab}{tab}a{enter}" CLEAR to switch to landscape.
>>Once I figured out I needed to first SET PRINT NAME to the desired
>>printer first, works pretty good. But I've seen situations where
>>KEYBOARD "{tab}{tab}{tab}{tab}o{enter}" CLEAR didn't return the user
>>to
>>portrait, so it's not foolproof. Report frx files can switch back and
>>forth to landscape mode, how do they do it?