Good Morning Mike: I done this where I didn't want to see something and moved the window position to be on the bottom. I have a main screen where the showwindow in the top level form. Then I move the "good" window to the top with a user32 command called setforegroundwindow. So I tried that but Word still flashes on the subsequent docs to be printed before I can set the window. The wordobject.visible = .f. works for the first doc opened to be printed but fails on the rest. Thanks for jogging my memory on this. There is also a movewindow and setwindowpos function in the user32.dll as well. Jack
________________________________________ From: ProfoxTech [[email protected]] on behalf of Mike Copeland [[email protected]] Sent: Tuesday, May 07, 2013 8:55 PM To: [email protected] Subject: Re: Print A Word Document From VFP I may be completely off the mark here, but I vaguely recall something about positioning the WORD application during the automation so that it was off-screen (to hide the flash.) I have no idea how that would be done, if it can be, but I've asked my brain a few times and I keep getting this same memory. Mike -------- Original Message -------- Subject: Print A Word Document From VFP From: Jack Skelley <[email protected]> To: [email protected] Date: 5/7/2013 6:28 PM > Good Evening All: > I am creating a Word 2010 automation form to open a document and print it. > I have a few questions: > 1 - Except for the first file opened every file there after will flash the > Word interface even though I issue a .visible = .f. and issue a Word > minimized command > How DO I stop the screen flash from Word when the second and subsequent > documents are opened? > 2- How do I know the document has been queued before I move to the next one? > Except for the annoying screen flash the code works ok if I pause between > docs to allow it to queue. > No editing involved here. Simple open a file and send it to a printer... > Thanks for any help. > Best regards, > > Jack Skelley > > Jack Skelley > Senior Director, Programming/Computer Operations > New Jersey Devils > (973)757-6164 > [email protected] > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/7d9e7f72b813014c8fd022cf04f820ed58633...@ex08.drdad.thenewarkarena.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

