Print Preview ActiveX Active Users: 35 / Visits Today: 125
Highest Active Users: 35
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 OutputFile - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: EndDocument - Function Topic Next Topic: Output - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/20/2005 :  12:04:52  Show Profile
Property OutputFile

Action:

This property sets or returns the name of the file to be used for file output.

Syntax:

OutputFile [ = strPathFileName As String]

Remarks:

In those cases where the output is saved as a file, the name and/or path of the file is defined by the OutputFile property.

If desired, the Output global, or its value, can be set in the EndDocument method.

Example:

To save the output as a text file on disk:

Preview.Output = prOTTextFile
Preview.OutputFile "C:\MyFile.txt"
Preview.AddText "a line of text. "
Preview.EndDocument

or in this way with global:

Preview.OutputFile "C:\MyFile.txt"
Preview.AddText "a line of text. "
Preview.EndDocument prOTTextFile

or in this way with value:

Preview.OutputFile "C:\MyFile.txt"
Preview.AddText "a line of text. "
Preview.EndDocument 3

See Also:

Output--------------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=405
EndDocument -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=363
AllowPrinterDialog

Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com

Go to Bottom of Page
  Previous Topic: EndDocument - Function Topic Next Topic: Output - Property  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02