Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TeeChart Question

edited March 2002 in General
Work with 6.03

Still the IEditCha.dcu missing if I use the Delphi build in Teechart (4.xx).

If I get the lizenz for latest Teechart, are there more problems ?

Thanks Erich Rieder
Zurich Switzerland

Comments

  • edited March 2002
    This is a TChart issue, not a RB issue. Get the pro version of TChart and it
    will work fine.

    FWIW, I should share what I have done--because I believe it has made life a
    lot easier for me :-)

    I don't use TCharts in reports (even though I have Tee Chart Pro), I use
    TppImages. I rename the image to something that corresponds to a TChart in
    my application. After laoding reports (I load them from PDX files, and
    multiple reports into one, each as a sub report), I scan the main report for
    TppImages. I add each TppImage to a TList, along with its size and name and
    scaling information. Then I send that list back to the calculator (put
    simply, my app is a set of calculators) that called it. The calculator has
    one or more charts (one calculator has +10 charts in it). It then creates a
    WMF graphic for the report, which gets put back into the report.

    What I really like about this method is that when I allow a user to
    customize the chart in the program (what is visible/not visible, colors,
    type of series, etc), it changes what shows up in the reports. No need to
    customize both. Has saved me a bootload of time.

    Anyone interested in some source snippets, let me know and I can post them
    here.

    Ed Dressel
    Team DM
  • edited March 2002
    Hi Ed,

    I'm interested.

    I do the same like you via

    TmpMeta := Chart1.TeeCreateMetafile(True, Rect(0, 0, Chart1.Width,
    Chart1.Height));
    frmDoc.ppImage1.Picture.Assign(TmpMeta);


    Cheers

    Martin Cremer



  • edited March 2002
    Thanks Ed, i will think and try to do this like you.
    Erich

  • edited March 2002
    We would like to the similar approach of displaying charts in RB without
    using TeeChart.
    Would appreciate if you send me the code snippets.

    Thanks,
    Vikram

  • edited March 2002
    ED,

    I am intrested too, now i'm having some problems with a reports that runs in
    a ISAPI DLL end creates HTML output (TXtraDev). when placing a TeeChart on
    it works fine in the IDE, even sending it to html, it creates a jpeg of the
    Chart.
    But when running as a DLL, beneath IIS the Chart doesn't initialize and
    sends no output.

    So might be intrested in your approach.


    Harry


  • edited March 2002
    The code is posted below. BTW, I have created an ISAPI DLL and did not have
    the problem you mention.

    Ed Dressel
    Team DM
  • edited March 2002
    Not sure where to find the posted code.....
    I don't see any attachments? Or, is there a separate newsgroup for
    attachments?

    Thanks,
    Vikram

  • edited March 2002
    > I don't see any attachments? Or, is there a separate newsgroup for

    Sorry, in a separate post below titled 'Code Snippets for Images'

    Ed Dressel
    Team DM
  • edited March 2002
    Got it. Thank you very much!

    Vikram

This discussion has been closed.