Beiträge von andi

    Yes i did set stretch for the parent Band - the reports worked well all the time before - the only thing I changed was WPEdit ...

    Now i plan to update ReportBuilder to the actual 17version - and will test it again.

    How should i send you the example - the compiled EXE File?

    No Report Builder 15 i use for a longer time.
    I just changed WPTools from v6 to v7 (and useing the new wpPDF and wpPDFViewer - but don't think that these are the problem)

    With WPTools 6.10 all worked fined but after change to v7 i got the response that the printed sheet isn't printed well (it is only a part of the page)
    After some investigation i checked that it seems that the "STRETCH" property didn't work as expected.

    BUT ONLY if i print it direct to the printer! (real printer, or XPS Printer, or PDF PRinter - none of them works)
    The Preview and the internal PDF Export works WELL!!

    Where can i look for this problem?

    How can i get the width and Height of an specific RTF or HTML Text?

    I treid following

    Code
    Result.Right    := fWPTLabel.PaintPageWidth[0];
        Result.Bottom   := fWPTLabel.PaintPageHeight[0];
        Result.Right    := fWPTLabel.Memo.Textwidth;
        Result.Bottom   := fWPTLabel.Memo.TextHeight;


    but none of them is the correct size what the RTFLabel need place for the text ...
    I tried several recalculation (DPI 1440 and CurrentXPixelsPerInch) but nothing seems to work.

    Anybode some ideas?

    Hello

    I would like to paint the RTF Text on a canvas (i would like to use it for drawing a hint window)
    Therefor my task is to generate a TRTFLAbel dynamically and get the width/height from it and paint it on a canvas

    I treid a WPTMemo but this didn't give me the correct width/height and so

    and a RTFLAbel i can't create dynamically (no otpion for that)

    has someone made this allready and can point me to the right direction?

    Hmm it should like the Internet Explorer or co .... the width should be dynamicalle set to the available width - very large is not what i would like ...

    Maybe i can set the page width every team i resize the panel ... but i thought there should be an elegant way for this.

    How is it possible, to show a document without the oagewidth property?
    I would like, that the text is wraped at the right border of the editor like in IE or Firefox.

    I tried all LayoutModes, but nothing worked.

    For example if i generate a document with <table width="100%> the resulting table should be over the whole editor size
    And it should be neccessary for scrolling (maybe it would be nice to enter a minimal width)

    How can i forbidd, that the user uses other styles than i have allready filled into the document?

    The styles combobox i can clear and fill by my code, to prevent the user from adding new styles, or changes existing styles.

    But how can i prevent that the user copy & paste a new style into the document?

    thanks for the additional help, but it still will not work :(

    I think i have found why it doesn't work, but don't know how to fix ...

    I have replaced the Mailmerge with your @INSERT@ method, after this the document seems to be ok.

    But if i merge the two documents (After the mail merge) together with the AppendParCopy function
    The resulting document is missing the "numberstyles" section
    And therefore the numbering is wrong.[/code]


    ..... habs nun statt AppendParCopy, einfach ein Finder.ToEnd; und dann LoadFromString gemacht, nun passt es ....

    Danke für die Hinweise ...

    I changed my code so that all editors now use the event.

    But i think the problem is the mailmerge, not the merging of two editors ....

    I have a big WPT Text (a document) which i mailmerge into an other document.

    Can the mailmerge handle whole WPT Document to be inserted?

    i tried following :

    But still no formating ...

    If i select text, and assign this text BOLD and a font size

    And after this, i select a style with other font styles - the new text should use the font size from the style or?

    What is the best method to merge them together?

    I tried

    Code
    par := SourceDok.FirstPar;
            while assigned(par) do begin
                // Append it to the active RTFDataBlock
                DestDok.ActiveText.AppendParCopy(par);
                // This moves to the next paragraph! Useful in a loop!
            end;

    but then some style and formatting are not copied correctly ...

    Is it possible, to deactive in the WPDFViewer.Clear that the Parent gets the focus?

    I have a window in the back, and there i would like to load a pdf for preview, but everytime i call .Clear, the main window loose the focus ...

    regards
    andreas