corelibraries-devexpress-dot-xtraprinting-dot-htmlexportoptionsbase-72e936cd.md
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.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(false)]
public virtual bool InlineCss { get; set; }
<DefaultValue(False)>
Public Overridable Property InlineCss As Boolean
| 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.
|
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 \ elements in the document body, with the src attribute specifying a base64 image representation.
See Also