![]() |
![]() |
Text.ExportToFile
Sub ExportToFile(FileName As String, StartIndex As Long, Count As Long, [IndexingType As cdrTextIndexingType = cdrCharacterIndexing])
Member of Text
The ExportToFile method saves a portion of a text block to a text file.
Parameters
|
Description
|
FileName
|
Specifies the full path and filename of the file to which the text is exported
|
StartIndex
|
Specifies the first text object in a text range
|
Count
|
Specifies the number of items in the range
|
IndexingType
|
Specifies the type of text to be indexed. The indexing type can be character, word, or paragraph. The IndexingType parameter returns a value of cdrTextIndexingType.
This parameter is optional, and its default value is cdrCharacterIndexing (0).
|
The following code example saves the second-to-fifth paragraphs to a text file, and it then inserts the text at the beginning of the text block:
Sub Test() ActiveShape.Text.ExportToFile "C:\Temp.txt", 2, 4, cdrParagraphIndexing ActiveShape.Text.ImportFromFile "C:\Temp.txt", 1, cdrParagraphIndexing End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.