Is it a bug?

edited 10:25PM in FastReport 4.0
Hi all,
in my program i save a report into a stream and all work well.
My problem comes when i load the report: every special char (Ex:
) is saved only as ";" then, when i load my report, it has ";" where there should be a special char..

excuse my poor english [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> see u, viper[/img]

Comments

  • edited October 2009
    Ok, my problem is on saving report to stream..
    I have:
    Template := TMemoryStream.Create;
    Template.Position := 0;
    Report.SaveToStream(Template);
    
    //only to see stream data
    Template.Seek(0,soFromBeginning);
    Template.SaveToFile('stream.xml');
    
    Xml in the stream doesn't have special char like "[&]#13;" or "[&]#10;" (without "[" and "]") but only the final ";".
    For example:
    XML
    ...ScriptText.Text="begin[&]#13;[&]#10;[&]#13;[&]#10;end."... //without "[" and "]" 
    STREAM
    ...ScriptText.Text="begin;;;;end."...
    
    When i load a report from stream, special chars are loaded as ";"
    This can be a problem in the script code and in the cross view fields list.

    Can anyone help me please? >
  • edited 10:25PM
    It isn't a bug!

    It's a problem inserting data in a sql database..
    It seems that some components cuts off "&#13", "&#10".. [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> I've tried using parameters but it doesn't work.. I use the TADQuery..[/img]

Leave a Comment