Hi ,For printing word’s particular pages I have written following command in lotus script but still it show me “Automation object argument type mismatch error”. Does any one has any idea about print word page please help me
word.ActiveDocument.PrintOut FileName="", Range=4, Item= _
0, Copies=1, Pages="2-3", PageType= _
0, ManualDuplexPrint=False, Collate=True, Background= _
True, PrintToFile=False, PrintZoomColumn=0, PrintZoomRow=0, _
PrintZoomPaperWidth=0, PrintZoomPaperHeight=0
Subject: “Automation object argument type mismatch error” During Printing Word Page
You would be better off sticking to your original post rather than posting a new topic every time
I’m not sure you can send True and False from script - you may need to convert those to numbers too
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
From Morning I have try to give print word document page but still I have not success, if some one had successed in give print word document pages please guide me. I cann’t understanding “Automation object argument type mismatch error”
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
From Morning I have try to give print word document page but still I have not success, if some one had successed in give print word document pages please guide me. I cann’t understanding “Automation object argument type mismatch error
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
LotusScript does not have the “:=” syntax. You need to find out what order the parameters should be coming in and use the actual values of the constants you are using so the statement winds up looking something like this:
Call word.ActiveDocument.PrintOut(“”, 4, 0, 1, “2-3”, 0, False, True, True, False, 0, 0, 0, 0)
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
Just I Copy & Past This Code in my data base I have work on R6.5 But Still it show me “automation object argument type mismatch Error”. This error is arrive at same line where I have past this code
Set word = CreateObject(“Word.Application”)
Set docs = word.Documents
Set Document = docs.Open( “C:\abc.doc” )
Call word.ActiveDocument.PrintOut(“”, 4, 0, 1, “6”, 0, False, True, True, False, 0, 0, 0, 0)
word.ActiveDocument.Close False
abc.doc file contains near about 100 pages.
How I solve "automation object argument type mismatch” Error. Please Guide me.
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
Did I tell you to copy and paste what I wrote? You need to find out what parameters are needed, what order they need to be in, and what values you need to use. I just showed you what the call should look like.
(Hint: the documentation for Office automation using C# will be more helpful than the VB/VBA documentation.)
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
How I can find out which parameters are needed & In which order they need to write if you know then please tell.
Subject: RE: “Automation object argument type mismatch error” During Printing Word Page
I think Stan gave you all the information you need to go and search for the information yourself