Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faxing saved reports
Message
De
18/06/1998 19:10:51
 
 
À
09/06/1998 16:39:08
Louis Schwartz
Strategic Investment Partners
Arlington, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00102174
Message ID:
00109747
Vues:
28
>>>>I am developing a program that faxes many reports at the same time using Winfax from within Foxpro 2.6. These reports are created individually and sent to the printer. After they are printed, I want to save a copy of the reports so that I can later run a program that calls Winfax to fax all the reports that haven't been faxed , at the same time (i.e. group them by fax# to save phone calls).
>>>>
>>>>I have done this many times by faxing as the report form command is issued by simply choosing the fax as the printer, but unfortunately this time I will be faxing many reports that have been already printed at varying times in the past.
>>>>
>>>>Any ideas on how to accomplish this? Maybe save the reports in a general field? Is this possible?
>>>>
>>>>Thanks for any help!
>>>>
>>>>Sally
>>>
>>>Putting them in a general field is a good idea. I think that probably the best way to do this is to use another dedicated machine to do the faxing for you, it need not be a very powerful machine. Put a record in the fax table for each fax you want to send then set the sent flag to true after you send them. Run the program on a schedule to send out each fax group. Good luck
>>>
>>>Louis
>>
>>
>>Louis,
>>
>>Thanks for your reply. My problem is putting them in a general field. I can't seem to figure that one out!
>>
>>Any ideas?
>>
>>Sally
>
>
>Sorry I wasn't thinking. You could probably print to file "report form ? noconsole to file filename" using winfax as your default printer and then store the files contents in a memo field. On the fax server you would then concatenate the files into one file and "copy file fax to lpt1" to send out the fax.

Louis,

This is a great idea, unfortunately, there is a bug with Fox and Winfax where if you choose Winfax as the printer and then report form to a file, it launches WInfax anyway! This is documented as a known bug in the MS Knowledge Base. It figures, right!

What I decided to do was to save the report data and memory variables into a table right before the report is generated. I can then later reprint the report by restoring the mem vars and using the saved data. This seems to work fine. At least I don't have to regenerate the report (recalc it), just have to reprint it to the fax. I'm still sure there must be a way to save a graphical report as a file and fax it later, but....

Thanks for all your support!

Sally
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform