-
Printing from Word
I have a program that accesses a word template and outputs formatted text
to the template and prints using this syntax and it hangs when it prints.
Once you hit cntrl+alt+delete and open task manager, it stops hanging and
prints.Is there a better way? Thanks in advance, Joe
objWord.ActiveWindow.Document.PrintOut
Do While Objword.BackgroundPrintingStatus > 0
frmPrint.Label1.Caption = "Print Document " & i + 1
frmPrint.Refresh
Loop
-
Re: Printing from Word
Try putting a DoEvents just before the frmPrint.Refresh
--
Dean Earley (dean.earley@icode.co.uk)
Assistant Developer
iCode Systems
"joe" <jfrey@pvcomm.com> wrote in message news:3c10cae6$1@147.208.176.211...
>
> I have a program that accesses a word template and outputs formatted text
> to the template and prints using this syntax and it hangs when it prints.
> Once you hit cntrl+alt+delete and open task manager, it stops hanging and
> prints.Is there a better way? Thanks in advance, Joe
>
> objWord.ActiveWindow.Document.PrintOut
>
> Do While Objword.BackgroundPrintingStatus > 0
> frmPrint.Label1.Caption = "Print Document " & i + 1
> frmPrint.Refresh
> Loop
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|