Format value

edited November 2009 in FastReport 4.0
I have value from DataSet - 1.123456
Memo's format is set to %2.6f
But after print I get - 1.123500

WHY ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:38AM
    good question works fine for me. fr4.8.27 d2006, d2010
    so what FR version and build are you using?
  • edited November 2009
    I use FR ver. 4.6.5 and Delphi 7 and ADOQuery,
    but I tried a version of 4.8.29
    and is the same.



    Please try something like that:
    ADOQuery component:
    if DS_cplm.Active then DS_cplm.Close;                                                       
        DS_cplm.SQL.Clear;            
        DS_cplm.SQL.Add('SELECT 1.123456 AS number);                            
         DS_cplm.Open;
    
     Memo19.Text:= <DS_CPLM."number">      <-- here I have 1.1235
    
  • edited 1:38AM
    Please, I'm waiting for the answer !
  • Anu de DeusAnu de Deus Hampshire, UK
    edited February 2010
    1- Get the latest version, 4.9.xxx from today (KEEP A COPY OF THE INSTALLER FOR THE VERSION YOU ARE USING NOW, because if 4.9.xxx introduces any bugs for you, you can revert back)
    2- If it still doesn't work, open a support ticket for that, the reply usually comes in 1 or 2 days

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.