tcom. Print pages from MS Word document 
Author Message
 tcom. Print pages from MS Word document

Hello,
I am trying to print a range of pages from a MS Word Document.
When using the command :
===
$Document -namedarg PrintOut Pages "1-2"
===
Or the following
===
set Opt_Arg [::tcom::na ]
$Document -method PrintOut \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        $Opt_Arg \
        "1-2"
===
All the pages are printed ! (not limited to 1-2 )
=======
If I try to use the following command
$Document -namedarg PrintOut Range ?? From ?1?  To ?2?
I don't succeed to find the correct syntax for the parameters

==========
Help is welcome
Thanks in advance
Joseph Collard
=================
ALSTOM Transport Belgium



Tue, 23 Nov 2004 18:16:48 GMT  
 tcom. Print pages from MS Word document

Quote:

> I am trying to print a range of pages from a MS Word Document.

Working from the information written in Microsoft's document at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q176069
it seems you need to call the PrintOut method as follows.

    $document PrintOut \
        [expr 0] \
        [::tcom::na] \
        4 \
        [::tcom::na] \
        [::tcom::na] \
        [::tcom::na] \
        [::tcom::na] \
        [::tcom::na] \
        "2-3"



Sun, 28 Nov 2004 10:26:13 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printing MS-WORD documents

2. The best solution for printing report into MS Word document

3. Printing Report to MS Word Document

4. MS Word with tcom?

5. Re : Reading MS Word Document

6. MS Word Documents

7. Class(y) 2.4b, with documentation for MS-Word 97, MS-Word 6.0 and WordPerfect 7.0

8. Clipper ->MS Word document?

9. Write a MS Word document ?

10. Wanted: module to access MS-Word Documents

11. Reading from MS Word and Excel documents

12. Code to recognize MS-Word document files?

 

 
Powered by phpBB® Forum Software