using FastReport.Export; using FastReport.Export.OoXML; using FastReport.Export.Pdf; using FastReport.Export.RichText; using System; using System.Drawing; using System.IO; using System.Net; using System.Web; using System.Web.Caching; using System.Web.UI.WebControls; using System.Xml.Serialization; namespace FastReport.Web { /// /// Tab position enum. /// public enum TabPosition { /// /// Tabs inside toolbar. /// InsideToolbar, /// /// Tabs under toolbar. /// UnderToolbar, /// /// Tabs are hidden. /// Hidden } /// /// Event arguments for custom auth. /// public class CustomAuthEventArgs : EventArgs { private bool authPassed = true; private HttpContext context; /// /// Gets or sets the HttpContext value. /// public HttpContext Context { get { return context; } set { context = value; } } /// /// Gets or sets the auth passed value. /// public bool AuthPassed { get { return authPassed; } set { authPassed = value; } } } /// /// Event arguments for Save report from Designer. /// public class SaveDesignedReportEventArgs : EventArgs { private Stream stream; /// /// Contain the stream with designed report. /// public Stream Stream { get { return stream; } set { stream = value; } } } /// /// Zoom mode enum /// public enum ZoomMode { /// /// /// Scale, /// /// /// Width, /// /// /// Page } /// /// Report states enum. /// public enum ReportState { /// /// /// Empty, /// /// /// Forms, /// /// /// Report, /// /// /// Done, /// /// /// Canceled } /// /// WebReport Properies class. /// [Serializable] public class WebReportProperties { [XmlIgnore] private Unit fWidth; [XmlIgnore] private Unit fHeight; [XmlElement("Width")] internal string WidthString { get { return fWidth.ToString(); } set { fWidth = Unit.Parse(value); } } [XmlElement("Height")] internal string HeightString { get { return fHeight.ToString(); } set { fHeight = Unit.Parse(value); } } #region Private #region Layout private bool autoWidth = false; private bool autoHeight = false; private bool layers = true; private System.Windows.Forms.Padding fPadding = new System.Windows.Forms.Padding(0, 0, 0, 0); private int toolbarHeight = 50; private ToolbarStyle toolbarStyle = ToolbarStyle.Large; private ToolbarIconsStyle toolbarIconsStyle = ToolbarIconsStyle.Red; private ToolbarBackgroundStyle toolbarBackgroundStyle = ToolbarBackgroundStyle.Light; private bool externalJquery = false; private bool inlineRegistration = false; private bool enableMargins = true; #endregion Layout #region Designer private bool fDesignReport = false; private bool fDesignScriptCode = false; private string fDesignerPath = "~/WebReportDesigner/index.html"; private string fDesignerSavePath = String.Empty; private string fDesignerSaveCallBack = String.Empty; private string fDesignerLocale = String.Empty; private string fDesignerConfig = String.Empty; #endregion Designer #region Report private string fControlID; private string fReportResourceString = String.Empty; private string fReportDataSources = String.Empty; private bool fPictures = true; private bool fSinglePage = false; private string fReportFile = String.Empty; private string fReportPath = String.Empty; private string fLocalizationFile = String.Empty; private float fZoom = 1f; private ZoomMode fZoomMode = ZoomMode.Scale; private int fCacheDelay = 60; private CacheItemPriority fCachePriority = CacheItemPriority.Normal; private string handlerUrl; private int fTotalPages; private bool fShowAfterPrepare = false; private bool fDebug = false; private bool fCloudEnvironmet = false; private bool fEmbedPictures = false; private int fRefreshTimeout = 0; private string fLogFile; private bool fUnlimitedWidth = false; private bool fUnlimitedHeight = false; private bool fDialogs = true; #endregion Report #region Toolbar private bool fShowToolbar = true; private bool fShowBottomToolbar = false; private string fButtonsPath; private bool fShowExports = true; private bool fShowPrint = true; private bool fShowFirstButton = true; private bool fShowPrevButton = true; private bool fShowNextButton = true; private bool fShowLastButton = true; private bool fShowZoomButton = true; private bool fShowRefreshButton = true; private bool fShowPageNumber = true; private bool fShowTabCloseButton = false; private bool fShowBackButton = false; private bool fShowOutline = false; private System.Drawing.Color fToolbarColor = Color.FromArgb(0xECE9D8); private TabPosition fTabPosition = TabPosition.InsideToolbar; #endregion Toolbar #region RTF private bool fShowRtfExport = true; private int fRtfJpegQuality = 90; private RTFImageFormat fRtfImageFormat = RTFImageFormat.Metafile; private bool fRtfPictures = true; private bool fRtfPageBreaks = true; private bool fRtfWysiwyg = true; private string fRtfCreator = WebUtils.DefaultCreator; private bool fRtfAutoSize = false; #endregion RTF #region MHT private bool fShowMhtExport = true; private bool fMhtPictures = true; private bool fMhtWysiwyg = true; #endregion MHT #region ODS private bool fShowOdsExport = true; private bool fOdsPageBreaks = true; private bool fOdsWysiwyg = true; private string fOdsCreator = WebUtils.DefaultCreator; #endregion ODS #region ODT private bool fShowOdtExport = true; private bool fOdtPageBreaks = true; private bool fOdtWysiwyg = true; private string fOdtCreator = WebUtils.DefaultCreator; #endregion ODT #region XPS private bool fShowXpsExport = true; #endregion XPS #region DBF private bool fShowDbfExport = true; #endregion DBF #region Word2007 private bool fShowWord2007Export = true; private bool fDocxMatrixBased = true; private string fDocxRowHeightIs; private bool fDocxParagraphBased = false; private bool fDocxWysiwyg = true; private bool fDocxPrintOptimized = false; #endregion Word2007 #region Excel2007 format private bool showExcel2007Export = true; private bool xlsxPageBreaks = false; private bool xlsxSeamless = false; private bool xlsxWysiwyg = true; private bool xlsxDataOnly = false; private bool xlsxPrintOptimized = false; private bool xlsxPrintFitPage = false; private bool xlsxGroupOnSeparateSheet = false; #endregion Excel2007 format #region PowerPoint2007 format private bool fShowPowerPoint2007Export = true; private PptImageFormat fPptxImageFormat = PptImageFormat.Png; #endregion PowerPoint2007 format #region XML format private bool fShowXmlExcelExport = true; private bool fXmlExcelPageBreaks = true; private bool fXmlExcelWysiwyg = true; private bool fXmlExcelDataOnly = false; #endregion XML format #region PDF format private bool showPdfExport = true; private bool pdfInteractiveForms = false; private bool pdfEmbeddingFonts = true; private bool pdfBackground = true; private bool pdfPrintOptimized = true; private bool pdfOutline = true; private bool pdfDisplayDocTitle = true; private bool pdfHideToolbar = false; private bool pdfHideMenubar = false; private bool pdfHideWindowUI = false; private bool pdfFitWindow = false; private bool pdfCenterWindow = false; private bool pdfPrintScaling = true; private string pdfTitle = String.Empty; private string pdfAuthor = String.Empty; private string pdfSubject = String.Empty; private string pdfKeywords = String.Empty; private string pdfCreator = WebUtils.DefaultCreator; private string pdfProducer = WebUtils.DefaultProducer; private string pdfUserPassword = String.Empty; private string pdfOwnerPassword = String.Empty; private bool pdfAllowPrint = true; private bool pdfAllowModify = true; private bool pdfAllowCopy = true; private bool pdfAllowAnnotate = true; private bool pdfA = false; private bool pdfShowPrintDialog = false; private bool pdfTextInCurves = false; private bool pdfImagesOriginalResolution = false; private bool pdfJpegCompression = false; private PDFExport.PdfColorSpace pdfColorSpace = PDFExport.PdfColorSpace.RGB; #endregion PDF format #region CSV format private bool fShowCsvExport = true; private string fCsvSeparator = ";"; private bool fCsvDataOnly = false; #endregion CSV format #region Text format private bool fShowTextExport = true; private bool fTextDataOnly = false; private bool fTextPageBreaks = true; private bool fTextAllowFrames = true; private bool fTextSimpleFrames = true; private bool fTextEmptyLines = false; #endregion Text format #region FPX (prepared) format private bool fShowPreparedReport = true; #endregion FPX (prepared) format #region Print private bool fPrintInPdf = true; private bool fPrintInBrowser = true; private string fPrintWindowWidth = "700px"; private string fPrintWindowHeight = "500px"; #endregion Print #region Hidden Properties private int fCurrentPage = 0; private int fCurrentForm = 0; private ReportState fReportState = ReportState.Empty; //private bool fHTMLDone = false; private float fCurrentWidth = 0; private float fCurrentHeight = 0; private bool fControlVisible = true; private int fPreviousTab = 0; private WebHeaderCollection fRequestHeaders = new WebHeaderCollection(); private WebHeaderCollection fResponseHeaders = new WebHeaderCollection(); #endregion Hidden Properties #region Extra /// /// "mm/dd/yy" /// internal const string DEFAULT_DATE_TIME_PICKER_FORMAT = "mm/dd/yy"; private string dateTimePickerFormat = DEFAULT_DATE_TIME_PICKER_FORMAT; #endregion Extra #endregion Private #region Public properties #region Layout /// /// /// public ToolbarStyle ToolbarStyle { get { return toolbarStyle; } set { toolbarStyle = value; if (value == ToolbarStyle.Large) toolbarHeight = 50; else toolbarHeight = 40; } } /// /// /// public ToolbarIconsStyle ToolbarIconsStyle { get { return toolbarIconsStyle; } set { toolbarIconsStyle = value; } } /// /// /// public ToolbarBackgroundStyle ToolbarBackgroundStyle { get { return toolbarBackgroundStyle; } set { toolbarBackgroundStyle = value; } } /// /// /// public bool AutoWidth { get { return autoWidth; } set { autoWidth = value; } } /// /// /// public bool AutoHeight { get { return autoHeight; } set { autoHeight = value; } } /// /// /// public bool Layers { get { return layers; } set { layers = value; } } /// /// /// public System.Windows.Forms.Padding Padding { get { return fPadding; } set { fPadding = value; } } #endregion Layout #region Designer /// /// /// public bool DesignReport { get { return fDesignReport; } set { fDesignReport = value; } } /// /// /// public bool DesignScriptCode { get { return fDesignScriptCode; } set { fDesignScriptCode = value; } } /// /// /// public string DesignerPath { get { return fDesignerPath; } set { fDesignerPath = value; } } /// /// /// public string DesignerSavePath { get { return fDesignerSavePath; } set { fDesignerSavePath = value; } } /// /// /// public string DesignerSaveCallBack { get { return fDesignerSaveCallBack; } set { fDesignerSaveCallBack = value; } } /// /// /// public string DesignerLocale { get { return fDesignerLocale; } set { fDesignerLocale = value; } } /// /// /// public string DesignerConfig { get { return fDesignerConfig; } set { fDesignerConfig = value; } } #endregion Designer #region Report /// /// /// public string ReportResourceString { get { return fReportResourceString; } set { fReportResourceString = value; } } /// /// /// public string ReportDataSources { get { return fReportDataSources; } set { fReportDataSources = value; } } /// /// /// public bool Pictures { get { return fPictures; } set { fPictures = value; } } /// /// /// public bool SinglePage { get { return fSinglePage; } set { fSinglePage = value; } } /// /// /// public bool InlineRegistration { get { return inlineRegistration; } set { inlineRegistration = value; } } /// /// /// public bool EnableMargins { get { return enableMargins; } set { enableMargins = value; } } /// /// /// public bool ExternalJquery { get { return externalJquery; } set { externalJquery = value; } } /// /// /// public string ReportFile { get { return fReportFile; } set { fReportFile = value; } } /// /// /// public string ReportPath { get { return fReportPath; } set { fReportPath = value; } } /// /// /// public string LocalizationFile { get { return fLocalizationFile; } set { fLocalizationFile = value; } } /// /// /// public float Zoom { get { return fZoom; } set { fZoom = value; fZoomMode = ZoomMode.Scale; } } /// /// /// public ZoomMode ZoomMode { get { return fZoomMode; } set { fZoomMode = value; } } /// /// /// public int RefreshTimeout { get { return fRefreshTimeout; } set { fRefreshTimeout = value; } } /// /// /// public int CacheDelay { get { return fCacheDelay; } set { fCacheDelay = value; } } /// /// /// public CacheItemPriority CachePriority { get { return fCachePriority; } set { fCachePriority = value; } } /// /// /// public bool CloudEnvironmet { get { return fCloudEnvironmet; } set { fCloudEnvironmet = value; } } /// /// /// public bool EmbedPictures { get { return fEmbedPictures; } set { fEmbedPictures = value; } } /// /// /// public bool ShowAfterPrepare { get { return fShowAfterPrepare; } set { fShowAfterPrepare = value; } } /// /// /// public bool Debug { get { return fDebug; } set { fDebug = value; } } /// /// /// public bool UnlimitedWidth { get { return fUnlimitedWidth; } set { fUnlimitedWidth = value; } } /// /// /// public bool UnlimitedHeight { get { return fUnlimitedHeight; } set { fUnlimitedHeight = value; } } /// /// /// public bool Dialogs { get { return fDialogs; } set { fDialogs = value; } } #endregion Report #region Toolbar /// /// /// public bool ShowToolbar { get { return fShowToolbar; } set { fShowToolbar = value; } } /// /// /// public bool ShowBottomToolbar { get { return fShowBottomToolbar; } set { fShowBottomToolbar = value; } } /// /// /// public string ButtonsPath { get { return fButtonsPath; } set { fButtonsPath = value; } } /// /// /// public bool ShowExports { get { return fShowExports; } set { fShowExports = value; } } /// /// /// public bool ShowPrint { get { return fShowPrint; } set { fShowPrint = value; } } /// /// /// public bool ShowFirstButton { get { return fShowFirstButton; } set { fShowFirstButton = value; } } /// /// /// public bool ShowPrevButton { get { return fShowPrevButton; } set { fShowPrevButton = value; } } /// /// /// public bool ShowNextButton { get { return fShowNextButton; } set { fShowNextButton = value; } } /// /// /// public bool ShowLastButton { get { return fShowLastButton; } set { fShowLastButton = value; } } /// /// /// public bool ShowZoomButton { get { return fShowZoomButton; } set { fShowZoomButton = value; } } /// /// /// public bool ShowRefreshButton { get { return fShowRefreshButton; } set { fShowRefreshButton = value; } } /// /// /// public bool ShowPageNumber { get { return fShowPageNumber; } set { fShowPageNumber = value; } } /// /// /// public bool ShowTabCloseButton { get { return fShowTabCloseButton; } set { fShowTabCloseButton = value; } } /// /// /// public bool ShowBackButton { get { return fShowBackButton; } set { fShowBackButton = value; } } /// /// /// public TabPosition TabPosition { get { return fTabPosition; } set { fTabPosition = value; } } /// /// /// public System.Drawing.Color ToolbarColor { get { return fToolbarColor; } set { fToolbarColor = value; } } /// /// /// public bool ShowOutline { get { return fShowOutline; } set { fShowOutline = value; } } #endregion Toolbar #region RTF /// /// /// public bool ShowRtfExport { get { return fShowRtfExport; } set { fShowRtfExport = value; } } /// /// /// public int RtfJpegQuality { get { return fRtfJpegQuality; } set { fRtfJpegQuality = value; } } /// /// /// public RTFImageFormat RtfImageFormat { get { return fRtfImageFormat; } set { fRtfImageFormat = value; } } /// /// /// public bool RtfPictures { get { return fRtfPictures; } set { fRtfPictures = value; } } /// /// /// public bool RtfPageBreaks { get { return fRtfPageBreaks; } set { fRtfPageBreaks = value; } } /// /// /// public bool RtfWysiwyg { get { return fRtfWysiwyg; } set { fRtfWysiwyg = value; } } /// /// /// public string RtfCreator { get { return fRtfCreator; } set { fRtfCreator = value; } } /// /// /// public bool RtfAutoSize { get { return fRtfAutoSize; } set { fRtfAutoSize = value; } } #endregion RTF #region MHT /// /// /// public bool ShowMhtExport { get { return fShowMhtExport; } set { fShowMhtExport = value; } } /// /// /// public bool MhtPictures { get { return fMhtPictures; } set { fMhtPictures = value; } } /// /// /// public bool MhtWysiwyg { get { return fMhtWysiwyg; } set { fMhtWysiwyg = value; } } #endregion MHT #region ODS /// /// /// public bool ShowOdsExport { get { return fShowOdsExport; } set { fShowOdsExport = value; } } /// /// /// public bool OdsPageBreaks { get { return fOdsPageBreaks; } set { fOdsPageBreaks = value; } } /// /// /// public bool OdsWysiwyg { get { return fOdsWysiwyg; } set { fOdsWysiwyg = value; } } /// /// /// public string OdsCreator { get { return fOdsCreator; } set { fOdsCreator = value; } } #endregion ODS #region ODT /// /// /// public bool ShowOdtExport { get { return fShowOdtExport; } set { fShowOdtExport = value; } } /// /// /// public bool OdtPageBreaks { get { return fOdtPageBreaks; } set { fOdtPageBreaks = value; } } /// /// /// public bool OdtWysiwyg { get { return fOdtWysiwyg; } set { fOdtWysiwyg = value; } } /// /// /// public string OdtCreator { get { return fOdtCreator; } set { fOdtCreator = value; } } #endregion ODT #region XPS format /// /// /// public bool ShowXpsExport { get { return fShowXpsExport; } set { fShowXpsExport = value; } } #endregion XPS format #region DBF format /// /// /// public bool ShowDbfExport { get { return fShowDbfExport; } set { fShowDbfExport = value; } } #endregion DBF format #region Word2007 format /// /// /// public bool ShowWord2007Export { get { return fShowWord2007Export; } set { fShowWord2007Export = value; } } /// /// /// public bool DocxParagraphBased { get { return fDocxParagraphBased; } set { fDocxParagraphBased = value; } } /// /// /// public bool DocxMatrixBased { get { return fDocxMatrixBased; } set { fDocxMatrixBased = value; } } /// /// /// public string DocxRowHeightIs { get { return fDocxRowHeightIs; } set { fDocxRowHeightIs = value; } } /// /// /// public bool DocxWysiwyg { get { return fDocxWysiwyg; } set { fDocxWysiwyg = true; } } /// /// /// public bool DocxPrintOptimized { get { return fDocxPrintOptimized; } set { fDocxPrintOptimized = value; } } #endregion Word2007 format #region Excel2007 format /// /// /// public bool ShowExcel2007Export { get { return showExcel2007Export; } set { showExcel2007Export = value; } } /// /// /// public bool XlsxPrintFitPage { get { return xlsxPrintFitPage; } set { xlsxPrintFitPage = value; } } /// /// /// public bool XlsxPageBreaks { get { return xlsxPageBreaks; } set { xlsxPageBreaks = value; } } /// /// /// public bool XlsxSeamless { get { return xlsxSeamless; } set { xlsxSeamless = value; } } /// /// /// public bool XlsxWysiwyg { get { return xlsxWysiwyg; } set { xlsxWysiwyg = value; } } /// /// /// public bool XlsxDataOnly { get { return xlsxDataOnly; } set { xlsxDataOnly = value; } } /// /// /// public bool XlsxPrintOptimized { get { return xlsxPrintOptimized; } set { xlsxPrintOptimized = value; } } /// /// /// public bool XlsxGroupOnSeparateSheet { get { return xlsxGroupOnSeparateSheet; } set { xlsxGroupOnSeparateSheet = value; } } #endregion Excel2007 format #region PowerPoint2007 format /// /// /// public bool ShowPowerPoint2007Export { get { return fShowPowerPoint2007Export; } set { fShowPowerPoint2007Export = value; } } /// /// /// public PptImageFormat PptxImageFormat { get { return fPptxImageFormat; } set { fPptxImageFormat = value; } } #endregion PowerPoint2007 format #region XML format /// /// /// public bool ShowXmlExcelExport { get { return fShowXmlExcelExport; } set { fShowXmlExcelExport = value; } } /// /// /// public bool XmlExcelPageBreaks { get { return fXmlExcelPageBreaks; } set { fXmlExcelPageBreaks = value; } } /// /// /// public bool XmlExcelWysiwyg { get { return fXmlExcelWysiwyg; } set { fXmlExcelWysiwyg = value; } } /// /// /// public bool XmlExcelDataOnly { get { return fXmlExcelDataOnly; } set { fXmlExcelDataOnly = value; } } #endregion XML format #region PDF format /// /// /// public bool ShowPdfExport { get { return showPdfExport; } set { showPdfExport = value; } } /// /// /// public bool PdfInteractiveForms { get { return pdfInteractiveForms; } set { pdfInteractiveForms = value; } } /// /// /// public bool PdfEmbeddingFonts { get { return pdfEmbeddingFonts; } set { pdfEmbeddingFonts = value; } } /// /// /// public bool PdfTextInCurves { get { return pdfTextInCurves; } set { pdfTextInCurves = value; } } /// /// /// public bool PdfBackground { get { return pdfBackground; } set { pdfBackground = value; } } /// /// /// public bool PdfPrintOptimized { get { return pdfPrintOptimized; } set { pdfPrintOptimized = value; } } /// /// /// public bool PdfOutline { get { return pdfOutline; } set { pdfOutline = value; } } /// /// /// public bool PdfDisplayDocTitle { get { return pdfDisplayDocTitle; } set { pdfDisplayDocTitle = value; } } /// /// /// public bool PdfHideToolbar { get { return pdfHideToolbar; } set { pdfHideToolbar = value; } } /// /// /// public bool PdfHideMenubar { get { return pdfHideMenubar; } set { pdfHideMenubar = value; } } /// /// /// public bool PdfHideWindowUI { get { return pdfHideWindowUI; } set { pdfHideWindowUI = value; } } /// /// /// public bool PdfFitWindow { get { return pdfFitWindow; } set { pdfFitWindow = value; } } /// /// /// public bool PdfCenterWindow { get { return pdfCenterWindow; } set { pdfCenterWindow = value; } } /// /// /// public bool PdfPrintScaling { get { return pdfPrintScaling; } set { pdfPrintScaling = value; } } /// /// /// public string PdfTitle { get { return pdfTitle; } set { pdfTitle = value; } } /// /// /// public string PdfAuthor { get { return pdfAuthor; } set { pdfAuthor = value; } } /// /// /// public string PdfSubject { get { return pdfSubject; } set { pdfSubject = value; } } /// /// /// public string PdfKeywords { get { return pdfKeywords; } set { pdfKeywords = value; } } /// /// /// public string PdfCreator { get { return pdfCreator; } set { pdfCreator = value; } } /// /// /// public string PdfProducer { get { return pdfProducer; } set { pdfProducer = value; } } /// /// /// public string PdfUserPassword { get { return pdfUserPassword; } set { pdfUserPassword = value; } } /// /// /// public string PdfOwnerPassword { get { return pdfOwnerPassword; } set { pdfOwnerPassword = value; } } /// /// /// public bool PdfAllowPrint { get { return pdfAllowPrint; } set { pdfAllowPrint = value; } } /// /// /// public bool PdfAllowModify { get { return pdfAllowModify; } set { pdfAllowModify = value; } } /// /// /// public bool PdfAllowCopy { get { return pdfAllowCopy; } set { pdfAllowCopy = value; } } /// /// /// public bool PdfAllowAnnotate { get { return pdfAllowAnnotate; } set { pdfAllowAnnotate = value; } } /// /// /// public bool PdfA { get { return pdfA; } set { pdfA = value; } } /// /// Enable or disable showing of Print Dialog /// public bool PdfShowPrintDialog { get { return pdfShowPrintDialog; } set { pdfShowPrintDialog = value; } } /// /// /// public bool PdfImagesOriginalResolution { get { return pdfImagesOriginalResolution; } set { pdfImagesOriginalResolution = value; } } /// /// /// public bool PdfJpegCompression { get { return pdfJpegCompression; } set { pdfJpegCompression = value; } } /// /// /// public PDFExport.PdfColorSpace PdfColorSpace { get { return pdfColorSpace; } set { pdfColorSpace = value; } } #endregion PDF format #region CSV format /// /// /// public bool ShowCsvExport { get { return fShowCsvExport; } set { fShowCsvExport = value; } } /// /// /// public string CsvSeparator { get { return fCsvSeparator; } set { fCsvSeparator = value; } } /// /// /// public bool CsvDataOnly { get { return fCsvDataOnly; } set { fCsvDataOnly = value; } } #endregion CSV format #region Prepared format /// /// /// public bool ShowPreparedReport { get { return fShowPreparedReport; } set { fShowPreparedReport = value; } } #endregion Prepared format #region Text format /// /// /// public bool ShowTextExport { get { return fShowTextExport; } set { fShowTextExport = value; } } /// /// /// public bool TextDataOnly { get { return fTextDataOnly; } set { fTextDataOnly = value; } } /// /// /// public bool TextPageBreaks { get { return fTextPageBreaks; } set { fTextPageBreaks = value; } } /// /// /// public bool TextAllowFrames { get { return fTextAllowFrames; } set { fTextAllowFrames = value; } } /// /// /// public bool TextSimpleFrames { get { return fTextSimpleFrames; } set { fTextSimpleFrames = value; } } /// /// /// public bool TextEmptyLines { get { return fTextEmptyLines; } set { fTextEmptyLines = value; } } #endregion Text format #region Print /// /// /// public bool PrintInPdf { get { return fPrintInPdf; } set { fPrintInPdf = value; } } /// /// /// public bool PrintInBrowser { get { return fPrintInBrowser; } set { fPrintInBrowser = value; } } /// /// /// public string PrintWindowWidth { get { return fPrintWindowWidth; } set { fPrintWindowWidth = value; } } /// /// /// public string PrintWindowHeight { get { return fPrintWindowHeight; } set { fPrintWindowHeight = value; } } #endregion Print #region Hidden Properties /// /// /// public bool ControlVisible { get { return fControlVisible; } set { fControlVisible = value; } } /// /// /// public bool ReportDone { get { return State == ReportState.Done; } set { State = value ? ReportState.Done : ReportState.Empty; } } /// /// /// public int TotalPages { get { return fTotalPages; } set { fTotalPages = value; } } /// /// /// public string LogFile { get { return fLogFile; } set { fLogFile = value; } } /// /// /// public WebHeaderCollection RequestHeaders { get { return fRequestHeaders; } set { fRequestHeaders = value; } } /// /// /// public WebHeaderCollection ResponseHeaders { get { return fResponseHeaders; } set { fResponseHeaders = value; } } internal ReportState State { get { return fReportState; } set { fReportState = value; } } internal int CurrentForm { get { return fCurrentForm; } set { fCurrentForm = value; } } /// /// /// public int CurrentPage { get { return fCurrentPage; } set { fCurrentPage = value; } } /// /// /// internal float CurrentWidth { get { return fCurrentWidth; } set { fCurrentWidth = value; } } /// /// /// internal float CurrentHeight { get { return fCurrentHeight; } set { fCurrentHeight = value; } } /// /// /// internal int ToolbarHeight { get { return toolbarHeight; } } /// /// /// internal string ControlID { get { return fControlID; } set { fControlID = value; } } /// /// /// internal string HandlerURL { get { return handlerUrl; } set { handlerUrl = value; } } internal int PreviousTab { get { return fPreviousTab; } set { fPreviousTab = value; } } #endregion Hidden Properties #region Extra /// /// /// public string DateTimePickerFormat { get { return dateTimePickerFormat; } set { dateTimePickerFormat = value; } } #endregion Extra #endregion Public properties /// /// Assigns another object values. /// /// public void Assign(WebReportProperties properties) { TabPosition = properties.TabPosition; ShowTabCloseButton = properties.ShowTabCloseButton; ToolbarStyle = properties.ToolbarStyle; ShowBottomToolbar = properties.ShowBottomToolbar; ShowToolbar = properties.ShowToolbar; ToolbarBackgroundStyle = properties.ToolbarBackgroundStyle; ToolbarColor = properties.ToolbarColor; ToolbarIconsStyle = properties.ToolbarIconsStyle; ToolbarStyle = properties.ToolbarStyle; ButtonsPath = properties.ButtonsPath; SinglePage = properties.SinglePage; LocalizationFile = properties.LocalizationFile; Zoom = properties.Zoom; ZoomMode = properties.ZoomMode; CacheDelay = properties.CacheDelay; CloudEnvironmet = properties.CloudEnvironmet; EmbedPictures = properties.EmbedPictures; ShowCsvExport = properties.ShowCsvExport; ShowDbfExport = properties.ShowDbfExport; ShowExcel2007Export = properties.ShowExcel2007Export; ShowExports = properties.ShowExports; ShowFirstButton = properties.ShowFirstButton; ShowLastButton = properties.ShowLastButton; ShowMhtExport = properties.ShowMhtExport; ShowNextButton = properties.ShowNextButton; ShowOdsExport = properties.ShowOdsExport; ShowOdtExport = properties.ShowOdtExport; ShowPageNumber = properties.ShowPageNumber; ShowPdfExport = properties.ShowPdfExport; ShowPowerPoint2007Export = properties.ShowPowerPoint2007Export; ShowPreparedReport = properties.ShowPreparedReport; ShowPrevButton = properties.ShowPrevButton; ShowPrint = properties.ShowPrint; ShowRefreshButton = properties.ShowRefreshButton; ShowRtfExport = properties.ShowRtfExport; ShowTextExport = properties.ShowTextExport; ShowWord2007Export = properties.ShowWord2007Export; ShowXmlExcelExport = properties.ShowXmlExcelExport; ShowXpsExport = properties.ShowXpsExport; ShowZoomButton = properties.ShowZoomButton; ShowBackButton = properties.ShowBackButton; PrintInBrowser = properties.PrintInBrowser; PrintInPdf = properties.PrintInPdf; ReportPath = properties.ReportPath; LogFile = properties.LogFile; EnableMargins = properties.EnableMargins; UnlimitedHeight = properties.UnlimitedHeight; UnlimitedWidth = properties.UnlimitedWidth; fDialogs = properties.Dialogs; fRequestHeaders = properties.RequestHeaders; fResponseHeaders = properties.ResponseHeaders; fDesignerConfig = properties.DesignerConfig; fDocxMatrixBased = properties.DocxMatrixBased; fDocxParagraphBased = properties.DocxParagraphBased; fDocxRowHeightIs = properties.DocxRowHeightIs; fDocxWysiwyg = properties.DocxWysiwyg; xlsxDataOnly = properties.XlsxDataOnly; xlsxPageBreaks = properties.XlsxPageBreaks; xlsxSeamless = properties.XlsxSeamless; xlsxWysiwyg = properties.XlsxWysiwyg; dateTimePickerFormat = properties.DateTimePickerFormat; HeightString = properties.HeightString; WidthString = properties.WidthString; } } }