Description
Get or sets the default fill color of the document. This fill color is used whenever a fill color is not specified for most of the objects added to the document.
Property type
Read-write property
Syntax (Visual Basic)
Public Property DefaultFillColor() As Variant
Remarks
This property must be a 6 character hexadecimal string value. The sytax is the same as the Color settings used in HTML (i.e. "FFFFFF" is white and "000000" is black). The value is "000000" - black by default.
Example
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% ' Create a PDF Document Dim MyDocument Dim MyPage Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) MyDocument.DefaultFillColor = "8B0000" 'Dark Red MyDocument.DefaultStrokeColor = "6495ED" ' Add one page to the document Set MyPage = MyDocument.AddPage() Dim MyRectangle Dim MyLine ' Here FillColor is left for the Rectange.The DefaultFillColor is used to fill the Rectangle Set MyRectangle = MyPage.AddRectangle( 20, 20, 100, 50, , , 2, , DPDF_ApplyColor_Both ) MyPage.AddLine 100, 250, 250, 250, 2, , DPDF_LineStyle_Solid MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %> |
See Also
Document Object
© Copyright 2007, ceTe Software