Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delayed Printing
Message
De
09/10/2011 17:22:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Delayed Printing
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01525931
Message ID:
01525931
Vues:
111
Hi All:

I have a table of customer information. I also have a folder of word documents, with 1 word document associated with each customer.

I want to be able to print a separate VFP report for each customer, followed by the document printed out of Word. the key is that these all need to all go to 1 print job, so that if the user wants to view the output instead of printing, she can print to a PDF file using something like CutePDF. The 1 print job will mean that CutePDF only asks for a name once.

Something like this:
Custfile
custno    Desc
CUST1   Customer 1
CUST2   Customer 2    

use custfile
do while !eof()
    Generate data for Foxpro report for CUSTNO
    Report form custreprt but do not actually print, just append to the printjob
    loWord.printdocument(CUSTNO + 'document.doc') but do not actually print, just append to the printjob
    skip
enddo

Print the whole thing to the printer
Can this be done?

BTW, I tried testing the 2nd parameter in the .printout method by setting it to .t. (append). I then executed it twice. There doesn't seem to be any difference whetther I set it to .t. or .f., it creates 2 PDF files.

Thanks,

Yossi
Répondre
Fil
Voir

Click here to load this message in the networking platform