Results 1 to 3 of 3

Thread: How to show print-outs successively with VPE4VDF

  1. #1
    Join Date
    Feb 2009
    Posts
    1,039

    Default How to show print-outs successively with VPE4VDF

    When developing complicated print-outs, it is very convenient it you can see how they successively are created when stepping through the program in the debugger. Sometimes I use VPE with Delphi, and there it can be done with VPEngine1.RefreshDoc;. Probably, VPEngine1.OpenDoc; and VPEngine1.Preview; need to be executed before that works, but is a very useful function.

    How can that be done with VPE4VDF? Send DoVpeRefreshDoc doesn't show anything. When I tried with Send DoVpePreviewDoc before DoVpeRefreshDoc I got error 57, stack memory full.

    Bengt

  2. #2
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: How to show print-outs successively with VPE4VDF

    Bengt

    should work the same in DF

    DoVpeRefreshDoc will refresh whats shown in the preview window

    so if you show the preview and then afterwards add more text to the document you will need to call DoVpeRefreshDoc to show the additional text

    generally if you get a stack error that often means you are running into an infinite recursion. This can happen with VPE documents if you print something way out of range for example and it is creating infinite page breaks

    so just to add

    DoVpePreviewDoc will show the preview of the current document with all the changes applied at that moment. No need to send DoVpeRefreshDoc unless you modify the document after showing the preview

    DoVpeRefreshDoc will not cause a preview to be shown. It will cause an update of an active preview so that all changes made to the document after the preview was shown will be shown
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  3. #3
    Join Date
    Feb 2009
    Posts
    1,039

    Default Re: How to show print-outs successively with VPE4VDF

    It works. Thanks
    /Bengt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •