>Hi all,
>
>i have used the following code to print a document :
>
>*!* DECLARE INTEGER CreateDC IN WIN32API ;
>*!* INTEGER lpszDriver, ;
>*!* STRING @ lpszDevice, ;
>*!* INTEGER lpszOutput, ;
>*!* INTEGER lpInitData
>*!* DECLARE INTEGER DeleteDC IN WIN32API INTEGER hDC
>
>*!* WITH thisform.oleControl1.Object
>*!* .SelStart = 0
>*!* .SelLength = 0
>*!* .SelPrint(nHDC)
>*!* ENDWITH
>
>But somewhere in my program this has generate a windows error. From then on the "type 'c:\something.txt'" wont work anymore. The only thing the command does is putting an output to the main vfp window. It is like vpf doesnt find the printer anymore. Sometimes i have a printerspool error. But only when i use the type command. everywhere else the printer works well.
>
>Somebody has an idea
>thnx
Instead of
type to printer, perhaps you might try the "???" command to send information to the printer.
Perhaps I am wrong, but
type to printer seems to me more like a residue from the DOS age.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)