Beiträge von BKV

    Hello Julian,
    Thanks for updates. Testing them right now.
    Could I suggest some more things? :)

    1) Now it is possible to export page as BMP and PNG to file.
    Is it possible to prevent working with files and get page as System.Drawing.Image object. (Because now I have to export first to temporary file at hard drive, than load again)

    2) It has to be possible to set different resolution for X and Y.

    Thanks a lot for your efforts.
    Konstantin.

    Hi Julian,
    Great, that is a very good news!
    But in any case could you pls implement GetPageAsPNG method or Printing on a HDCU , this will be more flexible for us (developers) in case we have to create specific tiff files (or any other formats) by own. Because there are situations, when you need a very specific tif file (with certain dimension, resolution, compression, with certain tags specific values, color bitdepth and so on)(for example if you have to send this tif file to specific fax card/service for transmission).
    Thanks in advance, Konstantin.

    Hello Julian,
    In TextDynamic, to get a graphical presentation of page, we have to use Memo.GetPageAsMetafile. But it is very difficult to work with Metafile format.

    In the WPTools there is a perfect possibility to print a page on any canvas:
    Memo.PaintRTFPage(Pg, 0, 0, Bmp.Width, Bmp.Height, Bmp.Canvas);
    Is it possible in the TextDynamic?
    Or is there any other solution to get the page at last as Bitmap?

    Thanks,
    Konstantin

    Hello Julian,
    There is a big problem with TextDynamic.
    I have sent a sample application to you by email.
    When TextDynamic is placed on the MDI form, and than I hide this form
    (Form.Hide()) and show again (Form.Show()), seems something happend
    with TextDynamic control. Looks like it is recreating (all settings
    are reseted, text disappears... and so on).
    Thanks

    In .Net all strings are unicode,
    But to load a unicode string into TextDynamic I have to use a "ANSI" format string: TextDinamic.Memo.LoadFromString(docBody, false, "ANSI");
    Think it is not correct.
    As in this case when I have to use a "UNICODE" format?
    The same thing is with saving.
    Think that in case of ANSI format for Load and Save the in/out parameter has to be a byte[] array.(array of bytes). As only using array of bytes it is possible to use ANSI in .Net

    Thanks.

    Julian,
    Hope it is clear, that we can`t to use your products in our new applications,
    if you don`t provide a opportunity for skins support.
    (How it has to be done - that is another question).
    That is related not only to WPTools, but to TextDynamic .NET also.

    That is very important for new projects. We have several new projects in development (One in Delphi Win32 and two in C# .Net 2.0). In both projects we are using DevExpress controls with skins. And we can`t to use your products because they don`t support any skinning. But we would like to use them (WPTolos and TextDynamic .NET).
    I hope that you clearly understand the problem and provide a solution ASAP.

    Brgs,
    Konstantin

    Hello Julian,
    Why it writes CRNL only for paragraph breaks?
    The customers expect, that the lines breaks in the plain text will be the same as they see in the Rtf, than maybe it is worth to write "CRNL" instead of only "NL" when saving to plaintext? (Ansi or unicode).
    Or make an option in the WPIOANSI.PAS and WPIOUNICODE.PAS.

    Hello Julian,

    We have problems with losing "Manual line break" formating when
    saving to plain text.
    If the lines in the rtf file are separated by "Manual line
    break" characters, not by "Paragraph" character, then when saving to plain text (ANSI or UNICODE) the "Manual line break" are not converting to the "#13#10" and the text is going without breaks.
    I have sent you email with examples.

    Thanks in advance

    Hello Julian,

    I am sorry, but DefaultAttr.Clear and WritingAttr.Clear
    didn`t help.
    I got the same result:
    <html>
    <head></head><body>
    <div><font>Text in Courier New</font></div>
    <div><font>Text in Times New Roman</font></div>
    </body></html>[/list]

    Hello Julian,
    I have changed the default font in the WPRTEDefs to
    DefaultFontName: string = 'Courier New'; //Arial
    The problem is that the font name is not defined in the output HTML if it is equal to the DefaultFontName.

    Example: The first string is in "Courier New" (face="Courier New" is missed)

    <html>
    <head></head><body>
    <div><font size=3 color="black">Text in Courier New</font></div>
    <div><font face="Times New Roman" size=3 color="black">Text in Times New Roman</font></div>
    </body></html>