Fast Report CelluarText cell width and cell height does not work

Hello FR Team,

I am trying to change cell width and cell height using its properties but there is no effects of changing these properties

another question...

how can i change designer scaling (Other reporting tools have these facility) ?

kindly suggest me

Comments

  • edited 5:56PM
    wrote:
    I am trying to change cell width and cell height using its properties but there is no effects of changing these properties

    example: report object thru code:
    FastReport.CellularTextObject CellularText3 = new FastReport.CellularTextObject();
    CellularText3.Name = "CellularText3";
    CellularText3.Left = FastReport.Utils.Units.Centimeters * 10f;
    CellularText3.Top = FastReport.Utils.Units.Centimeters * 9.000001f;
    CellularText3.Width = FastReport.Utils.Units.Centimeters * 7.5f;
    CellularText3.Height = FastReport.Utils.Units.Centimeters * 2.25f;
    CellularText3.Text = "Text without WordWrap";
    CellularText3.WordWrap = false;
    CellularText3.Font = new Font("Arial", 14f);
    CellularText3.CellWidth = FastReport.Utils.Units.Centimeters * 1f;
    CellularText3.CellHeight = FastReport.Utils.Units.Centimeters * 2f;
    CellularText3.Parent = Data1;
    
  • edited 5:56PM
    ipong wrote: »
    ipong wrote: »
    I am trying to change cell width and cell height using its properties but there is no effects of changing these properties

    example: report object thru code:
    FastReport.CellularTextObject CellularText3 = new FastReport.CellularTextObject();
    CellularText3.Name = "CellularText3";
    CellularText3.Left = FastReport.Utils.Units.Centimeters * 10f;
    CellularText3.Top = FastReport.Utils.Units.Centimeters * 9.000001f;
    CellularText3.Width = FastReport.Utils.Units.Centimeters * 7.5f;
    CellularText3.Height = FastReport.Utils.Units.Centimeters * 2.25f;
    CellularText3.Text = "Text without WordWrap";
    CellularText3.WordWrap = false;
    CellularText3.Font = new Font("Arial", 14f);
    CellularText3.CellWidth = FastReport.Utils.Units.Centimeters * 1f;
    CellularText3.CellHeight = FastReport.Utils.Units.Centimeters * 2f;
    CellularText3.Parent = Data1;
    

    Thank u dear for the quick reply
  • edited 5:56PM
    akki wrote: »
    akki wrote: »
    akki wrote: »
    I am trying to change cell width and cell height using its properties but there is no effects of changing these properties

    example: report object thru code:
    FastReport.CellularTextObject CellularText3 = new FastReport.CellularTextObject();
    CellularText3.Name = "CellularText3";
    CellularText3.Left = FastReport.Utils.Units.Centimeters * 10f;
    CellularText3.Top = FastReport.Utils.Units.Centimeters * 9.000001f;
    CellularText3.Width = FastReport.Utils.Units.Centimeters * 7.5f;
    CellularText3.Height = FastReport.Utils.Units.Centimeters * 2.25f;
    CellularText3.Text = "Text without WordWrap";
    CellularText3.WordWrap = false;
    CellularText3.Font = new Font("Arial", 14f);
    CellularText3.CellWidth = FastReport.Utils.Units.Centimeters * 1f;
    CellularText3.CellHeight = FastReport.Utils.Units.Centimeters * 2f;
    CellularText3.Parent = Data1;
    

    Thank u dear for the quick reply
    any idea about how to change designer report scaling ? (i want smaller scaling because i want controls to be aligned/resized correctly)
  • edited November 2017
    wrote:
    any idea about how to change designer report scaling ? (i want smaller scaling because i want controls to be aligned/resized correctly)

    sounds hacky, look at fr demo : customdesigner.

    and change to :
    private void Form1_Load(object sender, EventArgs e)
    {
        // create a new empty report and attach it to the designer
        Report report = new Report();
        designerControl1.Report = report;
    
        // restore the design layout. Without this code, the designer tool windows will be unavailable
        designerControl1.RefreshLayout();
    
        // it works, SubItems[0] = fit width, [1] fit page, [2] 100%
        FastReport.DevComponents.DotNetBar.Bar sb = designerControl1.Controls["StatusBar"] as FastReport.DevComponents.DotNetBar.Bar;
        FastReport.DevComponents.DotNetBar.ButtonItem b = sb.Items[3].SubItems[0].SubItems[0] as FastReport.DevComponents.DotNetBar.ButtonItem;
        b.RaiseClick();
    
        // it does not work
        //FastReport.DevComponents.DotNetBar.SliderItem s = sb.Items[3].SubItems[1] as FastReport.DevComponents.DotNetBar.SliderItem;
        //s.Value = 160;
    }
    

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.