>In printer properties there is a setting that indicates if the print job should spool before printing or go directly to the printer. I need to change this programmatically and couldn’t find anything in VFP to do it, so I resorted to the API which has the SetPrinter function which should do what I want. However before calling SetPrinter I must use OpenPrinter which requires a pointer to a structure as a parameter. I can’t get it to work under VFP(Openprinter allways returns 0) Has somebody had experience with this before that cares to offer some suggestions on what to try.
>
Download my CLSHEAP class or Paul-Vlad Tatavu's POINTERS cl;ass and use those to handle the memory management tasks. Both are available for download in the files section here on UT. Both can manage heap allocation and deallocation, data conversions and moving data between VFP variables and the heap.