Text Viewer ActiveX Control

ExportPage 

 

Export specific page to image files.

Public Function ExportPage(
   ByVal iPageIndex As Integer ,_
   ByVal strOutputFile As String
) as Bool

 

 Parameter
iPageIndex - the page number for export the image. The first page is 0.

strOutputFile - the output file name. Support output format is bmp, jpg, png, emf, gif, tif.
the output image format is depend on file extension.

Return Value
true - successful
false - failed

Example

   

VB.NET Syntax
 bresult = AxTextReaderAx1.ExportPage(AxTextReaderAx1.GetCurrentPage, "c:\output.jpg")


   

Visual Basic Syntax
 result =TextReaderAx1.ExportPage(TextReaderAx1.GetCurrentPage, "c:\output.jpg")