Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting the print button in a preview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00682100
Message ID:
00682105
Vues:
15
I don't think we have any control over Report Preview Window.

Here is my wild guess.

1. Create a Timer Control. Let it fire every 100 milli seconds.
2. When printing starts, a small window pops up displaying progress of the pringing
3. Check to see if this window is up using WONTOP() function in the Timer() event.
4. If it was ever poped up, you know user printed the report.


>I preview a report in a defined window with this code:
>
>
THISFORM.r_nRecNo=RECNO("correct")
>
>DEFINE WINDOW wReport FROM 0,0 TO 100,200 TITLE;
> "Corrective Action Request" SYSTEM CLOSE
>
>ACTIVATE WINDOW wReport
>ZOOM WINDOW wReport MAX
>
>REPORT FORM qcf11 NOEJECT RECORD THISFORM.r_nRecNo;
> NOCONSOLE WINDOW wReport TO PRINT PROMPT PREVIEW IN SCREEN
>
>RELEASE WINDOW wReport
>
>I would like to run a second report containing "Instructions for Completion" only if the user chose to print from the print preview toolbar. Something along the lines of
>
>IF (printbutton is clicked)
>report form 1
>report form 2
>ELSE
>release window
>ENDIF
>
>
>How can I catch the print button?
>
>
>Thanks!
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform