private Rdl.TextboxType CreateTextboxForGroupByColNameDisplay()
 {
     Rdl.TextboxType textbox = new Rdl.TextboxType();
     try
     {
         textbox.Name = "groupBYheading";
         //
         for (int i = 0; i < m_fields.Count; i++)
         {
             if (m_fields[i] == groupByColName)
             {
                 textbox.Items = new object[]
                 {
                     "=Fields!" + groupByColName + ".Value",
                     CreateTableCellTextboxStyleForGroupBy(),
                     true,
                     "0pt",
                     "700pt",
                     "20pt",
                 };
                 break;
             }
             else
             {
                 textbox.Items = new object[]
                 {
                     "",
                     CreateTableCellTextboxStyleForGroupBy(),
                     true,
                     "0pt",
                     "700pt",
                     "20pt",
                 };
             }
             textbox.ItemsElementName = new Rdl.ItemsChoiceType14[]
             {
                 Rdl.ItemsChoiceType14.Value,
                 Rdl.ItemsChoiceType14.Style,
                 Rdl.ItemsChoiceType14.CanGrow,
                 Rdl.ItemsChoiceType14.Top,
                 Rdl.ItemsChoiceType14.Width,
                 Rdl.ItemsChoiceType14.Height,
             };
         }
     }
     catch (Exception ex) { }
     return(textbox);
 }
 private Rdl.TextboxType CreateTableCellTextbox(string fieldName, int i)
 {
     Rdl.TextboxType textbox = new Rdl.TextboxType();
     textbox.Name  = fieldName;
     textbox.Items = new object[]
     {
         "=Fields!" + fieldName + ".Value",     //fills in the data
         // " =Format(First(Fields!fieldName.Value," +fieldName +"),BOLD)",
         //    "<span style='color:#000000;'> +"+"=Fields!" + fieldName + ".Value" +"</span> ",
         CreateTableCellTextboxStyle(i, fieldName),
         true,
         "130pt",
     };
     textbox.ItemsElementName = new Rdl.ItemsChoiceType14[]
     {
         Rdl.ItemsChoiceType14.Value,
         Rdl.ItemsChoiceType14.Style,
         Rdl.ItemsChoiceType14.CanGrow,
         Rdl.ItemsChoiceType14.Top,
     };
     return(textbox);
 }
        private Rdl.TextboxType CreateHeaderTableCellTextbox(string fieldName)
        {
            Rdl.TextboxType headerTableCellTextbox = new Rdl.TextboxType();

            headerTableCellTextbox.Name = fieldName + "_Header";

            if (fieldName == m_fields[0])
            {
                headerTableCellTextbox.Items = new object[]
                {
                    fieldName,
                    CreateHeaderTableCellTextboxStyleforFirstColumn(),
                    true,
                    "40pt",
                    "200pt",
                };
            }
            else
            {
                headerTableCellTextbox.Items = new object[]
                {
                    fieldName,
                    CreateHeaderTableCellTextboxStyle(),
                    true,
                    "40pt",
                    "200pt",
                };
            }
            headerTableCellTextbox.ItemsElementName = new Rdl.ItemsChoiceType14[]
            {
                Rdl.ItemsChoiceType14.Value,
                Rdl.ItemsChoiceType14.Style,
                Rdl.ItemsChoiceType14.CanGrow,
                Rdl.ItemsChoiceType14.Top,
                Rdl.ItemsChoiceType14.Left,
            };
            return(headerTableCellTextbox);
        }
 private TextboxType CreateHeaderTableCellTextbox(ReportColumn field)
 {
     var headerTableCellTextbox = new TextboxType();
     headerTableCellTextbox.Name = field.Name + "_Header";
     headerTableCellTextbox.Items = new object[]
                                        {
                                            field.Value,
                                            CreateHeaderTableCellTextboxStyle(),
                                            true,
                                        };
     headerTableCellTextbox.ItemsElementName = new[]
                                                   {
                                                       ItemsChoiceType14.Value,
                                                       ItemsChoiceType14.Style,
                                                       ItemsChoiceType14.CanGrow,
                                                   };
     return headerTableCellTextbox;
 }
        private TextboxType CreateTableCellTextbox(ReportColumn field)
        {
            string fieldValue = "Fields!" + field.Name + ".Value";

            var textbox = new TextboxType();
            textbox.Name = field.Name;
            if (field.Name == "RowNumber")
            {
                textbox.Items = new object[]
                                    {
                                        "=RowNumber()",
                                        CreateTableCellTextboxStyle(),
                                        true,
                                    };
            }
            else
            {
                textbox.Items = new object[]
                                    {
                                        "=IIf(" + fieldValue + " = \"1\", \"Plaèal\", " +
                                        "IIf(" + fieldValue + " = \"2\", \"Ni plaèal\", " +
                                        "IIf(" + fieldValue + " = \"3\", \"Veteran\", " +
                                        "IIf(" + fieldValue + " = \"4\", \"Mladoletnik\", " +
                                        "IIf(" + fieldValue + " = \"5\", \"Ni podatka\", " + fieldValue + ")))))",
                                        CreateTableCellTextboxStyle(),
                                        true,
                                    };
            }
            textbox.ItemsElementName = new[]
                                           {
                                               ItemsChoiceType14.Value,
                                               ItemsChoiceType14.Style,
                                               ItemsChoiceType14.CanGrow,
                                           };
            return textbox;
        }