Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overlaying an insurance form onto a laser printed report
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00112699
Message ID:
00148258
Views:
33
Marcus,

Here's a chunk of all VFP5 code I use to do the exact same thing. forms.pcl is a file that contains macros and all the PCL code needed to load them. Then as I print the forms I can just ??? the correct macro PCL to get the form I need.
lparameter plCheck

if ( pcount() = 0 )
   plCheck = .f.
endif

if ( ! plCheck ) or ( plCheck and ! thisform.mlFormsDownloaded )
   local lcSelect

   lcSelect = alias()

   create cursor temp1 ( mForms m )
   append blank
   append memo mForms from forms.pcl
   wait window "Downloading claim forms to the printer" nowait
   ??? "" + temp1.mForms && can't ??? a memo directly so make it a string
   use

   select (lcSelect)
endif

thisform.mlFormsDownloaded = .t.
>How do you copy the macro to the printers? Can you do it inside of VFP? I can only get it to work by doing :
>! COPY mymacro LPT2 /b
>
>This brings up the annoying dos window and just doesn't seem right. When I issue: COPY FILE myMacro TO LPT2.DOS --I get not enough disk space. (100k macro, with 2mg of printer memory) If I do: COPY FILE myMacro TO LPT2 --I get invalid seek offset.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform