示例#1
0
        public override void GenerateHeader(string reportName, Dictionary <string, string> filters)
        {
            foreach (var filter in filters)
            {
                if (filter.Key.Trim().Equals(string.Empty))
                {
                    continue;
                }

                var range = _wbPart.GetDefinedName(filter.Key.Replace(" ", "_").Replace("/", "_").Replace("%", "_").Replace("-", "_"));
                _wbPart.UpdateValue(SheetName, range, filter.Value, 0, CellValues.SharedString, _sharedStrings);
            }
            _wbPart.UpdateValue(SheetName, _wbPart.GetDefinedName("Titulo"), reportName, 0, CellValues.SharedString, _sharedStrings);
        }