By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

printing a .RTF file to the screen

P: n/a
Hello !

I want to print the contents of a .RTF file to the screen.

I have the following code:

$filename = "C:\\test\\1.rtf";
$word = new COM("Word.Application") or die("Unable to instantiate
$word->visible = true;


I can access the file because i see it flashing by (in MS Word),
but later i'm given the option of saving it to .MDI format. (Microsoft
Document Imaging). So the question is about why ==>


doesn't simply output the contents of RTF on the screen?
I have a guess and that is: by default it is refering to the
printer device (file description 1?) . and in that case i tried
to redirect it to other file descriptors like 0 and 2. But non worked.
thanks for your time and suggesions,

Jan 24 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.