Announcement

Collapse
No announcement yet.

Print/preview graphical reports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Print/preview graphical reports

    How do you print/preview graphical reports?

    DDOC does an excellent job on text only reports.

    Does QHTML give this ability?
    Would Internet Explorer automation do this?
    http://www.powerbasic.com/support/pb...ad.php?t=40921

    Suggestion to PowerBASIC:
    Greatly expand XPRINT by supporting a graphical file format.

    Jose Roca's mini browser makes an excellent report viewer
    with the added ability to have your own browser!

    Highly suggested download at: http://www.jose.it-berater.org/smffo...p?topic=2826.0

    Printing a web page without a dialog even works.
    I'm surprised because I thought that was a security issue.

    Can't wait to move to PBFORMS!

    Code:
     CASE %IDM_PRINT
                   pIWebBrowser2 = OC_GetDispatch(GetDlgItem(hWnd, %IDC_IEWB))
                   IF ISOBJECT(pIWebBrowser2) THEN
                      REM pIWebBrowser2.ExecWB %OLECMDID_PRINT, %OLECMDEXECOPT_PROMPTUSER
                      pIWebBrowser2.ExecWB %OLECMDID_PRINT, %OLECMDEXECOPT_DONTPROMPTUSER
                      pIWebBrowser2 = NOTHING
                   END IF
                   EXIT FUNCTION
    Last edited by Mike Doty; 19 Jul 2009, 10:17 AM.
    CMD shortcut to open any location:
    %windir%\system32\cmd.exe /k " cd\ & x: & cd x:\xxxx
    Change to run as administrator
    How long is an idea? Write it down.

  • #2
    Mike

    See dpAddGraphic and dpDrawGraphic in ddoc. Bitmaps only (and jpegs if ddoc_jpg.dll installed).

    Comment


    • #3
      I definitely will!
      Thank you very much. Never saw the jpg support.

      Using the browser code above and creating your app
      as html sure has some advantages and can web enable it.
      CMD shortcut to open any location:
      %windir%\system32\cmd.exe /k " cd\ & x: & cd x:\xxxx
      Change to run as administrator
      How long is an idea? Write it down.

      Comment


      • #4
        Mike, using the Graphic/Xprint statements, a print preview can be written.

        There should be several examples of print preview including one written by the
        PB staff. That one, however, just shows text.

        What I did was to write the report to a file using simple script-like approach. Then
        when preview and/or printing read the file and interpret it using either Graphic or
        Xprint statements.
        Client Writeup for the CPA

        buffs.proboards2.com

        Links Page

        Comment

        Working...
        X