Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
JC
 
Posts: n/a
Default With Office 2003 Microsoft Office Document Image

I want to programatically open an MSWord doc and save it as a Tiff. The
following code works if I call it as a macro within the MSWord application,
but not if I run it from my VB application. When i run this code in my VB App
it saves the file as a very large tif and when i try to open the tif i get an
error message that says "The selected file is not a valid Microsoft Office
Document Imaging File."

Anybody see what i'm doing wrong? Thanks Joan

Dim oword As New Word.Application
oword.Documents.Open "C:\test2.doc"

oword.PrintOut filename:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0, OutputFileName:="C:\xx.tif"
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word has a blank page after I use Microsoft Office Document Imagin Moose Hockey Microsoft Word Help 5 April 24th 06 10:27 PM
Summary Test Results for Microsoft Office 2003 Microsoft Office 2003 New Users 5 March 6th 06 10:58 PM
Is there any add-on for Open Document Text file ? Jason New Users 2 October 29th 05 09:39 PM
I have microsoft office 2003 and it won't save a document, nor w. Ricardo Microsoft Word Help 1 March 8th 05 09:50 PM
installed office 2003, I want my old "open new office document" fe Florida boy Microsoft Word Help 5 February 18th 05 10:02 AM


All times are GMT +1. The time now is 05:21 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"