ComponentOne VSView 8.0
ExportRaw Property

Injects raw text into the output file specified by the ExportFile property.

Syntax

[form!]VSPrinter.ExportRaw[ = value As String ]

Remarks

This property works in conjunction with the ExportFile and ExportFormat properties. It allows you to insert raw output directly into the export file stream.

When generating HTML or RTF output, VSPrinter automatically handles text and tables, but pictures and textboxes are not included in the output. The ExportRaw property allows you to insert these elements through code. In addition, you may use the ExportRaw property to include elements that are not part of the original document into the output stream. For example, you may want to include comments or scripting code.

For example, the following code creates a document with some text and a picture. The text is included in the HTML output file automatically, but the picture is not.

The following code uses the ExportRaw property to insert an IMG tag into the HTML output stream:

With vp

  ' create HTML document

  .ExportFile = "c:\MyDocs\Export.htm"

  .ExportFormat = vpxPlainHTML

  .StartDoc

           

  ' create some text (gets exported to HTML automatically)

  .Paragraph = "This image appears also in the HTML file:"

 

  ' insert a picture (*not* exported to HTML automatically)

  Set p = LoadPicture(App.Path & "\wall.gif")

  .DrawPicture p, .MarginLeft, .CurrentY

 

  '  create HTML image tag manually

  '  the picture will get placed in the HTML file

  .ExportRaw = "<IMG SRC=""wall.gif"">"   ' close document   

  .EndDoc

  .ExportFile = ""

End With

Data Type

String

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback