Subscribe
to our newsletter

TextPipe Pro 9.0 Jan 31, 2012 new

TextPipe Pro

Download   Buy Now

TextPipe Pro 9.0 Jan 31, 2012 new

Buy Now Download

More downloads...

Hide sidebar

Compatible with Windows 7 OS
Software runs successfully on Windows 98, 2000, XP, 2003, Vista & Windows 7

Support Section

helpWe are here to provide technical support to our customers.

Visit Our Support Section »

 

Buy Now Download Tour

Here's an example of how to use TextPipe's COM interface from within a Microsoft Word macro:

Sub TextPipeCOMExample()
'
' Macro by Simon Carter, DataMystic
' Demonstrates running TextPipe on a Word Document using COM

Dim TaskId
Dim TextPipePath
Dim FilterName
Dim pathname

Dim TP As TextPipe.Application
Dim f As TextPipe.FilterWindow

FilterName = "c:\myfilter.fll"

Set TP = CreateObject("TextPipe.Application")
TP.Show
Set f = TP.NewWindow

f.openFilter (FilterName)
f.startFilters
f.InputMode = 0
f.OutputMode = 0
f.endFilters

'select the entire document
Selection.WholeStory
'copy the entire document to the clipboard
Selection.Copy

f.executeClipboard
f.CloseWithoutSave
Set f = Nothing
Set TP = Nothing

'paste the result in, overwriting the original
Selection.WholeStory
Selection.Paste

End Sub

Did you know? You can generate VBScript or JScript code from a filter prototype by choosing File Menu\Export\Export VBScript or Export JScript. You can even generate a web page to run a filter from a friendly front-end.

Buy Now Download Tour

 

  

rss twitter faceboook Bookmark and Share