Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print PDF file from VFP directly?
Message
From
28/09/2004 17:47:31
 
 
To
28/09/2004 16:51:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00904836
Message ID:
00946980
Views:
61
The custom window title is stored where? and how?

What is the complete title of the reader window when one of these are opened? Does it still says "Acrobat Reader -[ " at the beginning? Could this work?
   *== Printing has begun when PDF name appears in title of Reader window
   DO WHILE .t.
      getwindowtext(lnReaderHwnd, @lcWindowTitle, lnWindowTitleLen)
      IF "- [" $ lcWindowTitle
         EXIT
      ENDIF
   ENDDO

   *== Printing has finished when PDF name no longer in title
   DO WHILE .t.
      lcWindowTitle = SPACE(50)
      getwindowtext(lnReaderHwnd, @lcWindowTitle, lnWindowTitleLen)
      IF ! "- [" $ lcWindowTitle
         EXIT
      ENDIF
   ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform