VFP SYS(1037) no longer has a printer button in Vista or Win 7

Posted on 2011-04-21
Last Modified: 2012-05-11
After all is said and done, what do you think is the simplest way to manage this issue?  

One of our VFP apps has a simple form class with just three buttons: Print Setup - Preview - Print.  The click event in the Print Setup button contains nothing other than "=SYS(1037)".  We skipped right over the Vista disaster on our domains, but are now migrating to Win 7.  This issue that popped up with Vista is still a problem in Win 7.

There are some options posted out there, but I am wondering if you all came to a final and easy to implement resolution to replace "=SYS(1037)".

Question by:woodwyn
    LVL 41

    Accepted Solution

    You have to swap this setting into two parts:

    1) Printer selection - call GETPRINTER() function and then set the default FoxPro printer by


    You can even use following command:


    2) Page setup for the selected printer - call SYS(1037) as you do today

    Another option is to use PRINTER PROMPT clauses in your REPORT FORM commands and leave users to select the right printer manually.

    LVL 41

    Expert Comment

    One more option came in my mind...

    Use three buttons:  Preview,  Print to default printer,  Print to selected printer

    I am sure you'll find better button captions.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: (http://msd…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now