Beiträge von outlaw

    Hy!

    I try to get my reporting work, but the OnReadFormulaVar event is never raised. I think the Problem is that my Formula is not written correct in my template.
    I tried this:
    ehTDeditor2.Report.AddVar("AnzahlPreis", "Summe1", "Zwischensumme", "*","=0", "CUR=€", "", 0, "+=ReLeistungen.Anzahl * ReLeistungen.Preis", "", 0);

    and get this:
    {\field{\*\fldinst{MERGEFIELD AnzahlPreis}}{\*\wpfldparam{Summe1}}{\fldrslt{Summe1}}}
    (done by the ShowRepository-Dialog)
    so the field evaluates as a normal Mergefield?!

    What I am doing wrong? I need the formula Fields to calculate and sum.
    BTW, I am using ADO.net and not DAO.

    Thank you for any hint!
    Robert

    Hello!
    I would like to create reports in a c# .NET2 solution, but I really don't know how to start.
    The Reports should be dynamic (use can choose tables, etc.)
    The examples in the manual are only for Access & DAO.
    Can anybody give me a hint or provide an example? - This would be great.
    I startet with this few lines :-):

    Code
    IWPReport Report = ehTDeditor2.Report;
    Report.Clear();
    Report.InitTemplate("@Field and Bands", 6);


    In the background I am using Access or (MS SQL) as Database
    Thank you very much for your help!
    Robert