I don't see where you are selecting a printer - sounds to me like the default printer on the machine is either not set, or the driver is corrupt. a)Update the driver for the default printer, or b)don't allow them to print until they select a printer.
>Hello everybody.
>
>i have different logs in my app which users can display and print. they are normal asci text files. through a command button i issue the following comands:
>LOCAL ;
> OldConsole, ;
> SetHeading, ;
> FileName
>
>OldConsole = SET('console')
>SetHeading = SET('HEADINGS')
>SET CONSOLE OFF
>SET HEADING OFF
>
>FileName = THIS.PARENT.DisplayFile
>
>TYPE (FileName) AUTO WRAP TO PRINTER PROMPT
>
>SET CONSOLE &OldConsole
>SET HEADING &SetHeading
>
>if the user chooses to select a printer and prints everything is ok, but if the user cancels on the printer selection, vfp crashes with a C0000005 error.
>
>This is in vfp6 sp5 winxp and a bunch of network printers.
>
>anyone has an idea if this is a bug or any workaround?
>
>thanks for all your help in advance!
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown