Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS Copy Command/VFP 6.0
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244498
Message ID:
00245115
Views:
37
Dan,

Here's a pure FoxPro code solution that I use for sending PCL to an HP printer:
   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
>I'm migrating a FPD 2.5 app to VFP6. The product does a lot of printing using PCL escape sequences with laser printers. Before printing, any required soft fonts (.fnt) files are copied to the printer. This is being accomplished with "COPY /B file.fnt lpt1:". I've been able to replace this with "COPY FILE file.fnt TO \\printername" on NTWS4.0 SP3 but have been forced to continue the use of the DOS Copy command on Win9x platforms (the former syntax causes an error 'Cannot Create File'; Fox is treating the printer name like a network share). Using this command causes a DOS window to pop up on the screen during the copy process. My question is two-fold:
>
>1. Is there a better way to get the fonts to a printer (both local and network); i.e. an API call or 3rd party tool.
>
>2. If I'm stuck with the COPY command, how can I get it to run in a minimized DOS window. I've tried adjusting the properties of command.com and foxrun.pif files to run minimized. This had no effect. I was able to modify the PIF so that the DOS Window Caption reads 'Uploading Fonts...'
>
>The application is virtually finished and works great. The DOS window, however, takes away from some of the aesthetics.
>
>TIA
df (was a 10 time MVP)

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

Click here to load this message in the networking platform