HtmlExportOptionsBase.InlineCss Property

Specifies whether the style properties are written to the <head> section of an HTML document, or they are defined at the same place where a specific style is assigned in a document.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.1.Core.dll

Declaration

[DefaultValue(false)]
public virtual bool InlineCss { get; set; }
<DefaultValue(False)>
Public Overridable Property InlineCss As Boolean

Property Value

Type Default Description
Boolean

false

true to define the style properties at the same place where a specific style is assigned in a document, otherwise false.

Property Paths

You can access this nested property as listed below:

Show 36 property paths
Library Object Type Path to InlineCss
Cross-Platform Class Library RemotePrintingSystem
.ExportOptions.Html.InlineCss
RemotePrintingSystem
RemotePrintingSystem
.ExportOptions.Mht.InlineCss
ExportOptions
.Html.InlineCss
ExportOptions
.MailMessage.InlineCss
ExportOptions
.Mht.InlineCss
PrintingSystemBase
.ExportOptions.Html.InlineCss
PrintingSystemBase
PrintingSystemBase
.ExportOptions.Mht.InlineCss
WinForms Controls PrintingSystem
.ExportOptions.Html.InlineCss
PrintingSystem
PrintingSystem
.ExportOptions.Mht.InlineCss
XtraSchedulerReport
.ExportOptions.Html.InlineCss
XtraSchedulerReport
XtraSchedulerReport
.ExportOptions.Mht.InlineCss
WPF Controls ExportOptionsContainer
.Html.InlineCss
ExportOptionsContainer
.MailMessage.InlineCss
ExportOptionsContainer
.Mht.InlineCss
PrintingSystem
.ExportOptions.Html.InlineCss
PrintingSystem
.ExportOptions.Html.InlineCss
PrintingSystem
PrintingSystem
PrintingSystem
.ExportOptions.Mht.InlineCss
PrintingSystem
.ExportOptions.Mht.InlineCss
Reporting XtraReport
.ExportOptions.Html.InlineCss
XtraReport
XtraReport
.ExportOptions.Mht.InlineCss
DocumentOperationRequest
.ExportOptions.Html.InlineCss
DocumentOperationRequest
DocumentOperationRequest
.ExportOptions.Mht.InlineCss
Silverlight Controls PrintingSystem
.ExportOptions.Html.InlineCss
PrintingSystem
.ExportOptions.Html.InlineCss
PrintingSystem
PrintingSystem
PrintingSystem
.ExportOptions.Mht.InlineCss
PrintingSystem
.ExportOptions.Mht.InlineCss

Remarks

When the styles are written to the <head> section of an HTML document, they are ignored by some mail clients, and to maintain a consistent look for your reports, the HtmlExportOptionsBase.InlineCss property must be to true.

In this case, the style properties will be defined at the same place where a specific style is assigned in a document. This will ensure that the resulting document is compatible with any mail client (although at the expense of a larger document size).

This property also affects how the XRPictureBox and XRBarCode controls are rendered on a web page. By default, images corresponding to rendered controls are assigned to the background-image property of styles that are specified in the <head> section of an HTML document. Setting the HtmlExportOptionsBase.InlineCss property to true will make these controls rendered as <img> elements in the document body, with the src attribute specifying a base64 image representation.

See Also