473,472 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

problem with printOut under word.interop

1 New Member
hi
I have problem to print document under word.interop.
My aplication make a document in word application (pilot to word interop).
I Have 2 document in A5 format page.
I seacrh solution to print this 2 page A5 in 1 page A4.
i have use this code :
Expand|Select|Wrap|Line Numbers
  1. With WordApp
  2.      .PrintOut( _
  3.                FileName:="", _              
  4.  
  5. Range:=Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument, _
  6.                                 Item:=Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent, _
  7.                 Pages:="1,2", _
  8.                 Copies:=1, _
  9. PageType:=Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages, _
  10. ManualDuplexPrint:=False, _
  11.                  Collate:=True, _
  12.                  PrintToFile:=False, _
  13.                  PrintZoomColumn:=2, _
  14.                  PrintZoomRow:=1, _
  15.                  PrintZoomPaperWidth:=11907, _
  16.                  PrintZoomPaperHeight:=16839)
  17. End With
  18.  
But this do not run.
Do you have an idea ?
thank
Sep 15 '11 #1
0 1366

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mico | last post by:
Does anyone know of any way to indent a table using the C# Word interop assembly? Cheers, Mark.
16
by: Simon Verona | last post by:
I have a problem with automating MS Word through vb.net My code is : Dim objword As new Word.ApplicationClass Try objWord.Documents.Open(letterfile)...
3
by: Dustin van de Sande | last post by:
I'm developing a ASP.NET 2.0 web application which exports and imports Word documents. The functionality is implemented in a DLL project which is referenced by the web application. In the DLL...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
0
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: live | last post by:
Hi, when i try to open document word for reading and writing with C#, the program stop on this line And the program give me this error : 'DefaultDomain' : chargé
2
by: DougS | last post by:
I have an ASP.Net 1.1 app running on my intranet. I want to be able to output a report in Word. I have a .Net dll written for a similar WinForms application. Can I install the Word Interop...
2
by: Derek Hart | last post by:
I am using late bound Microsoft Word integration with a vb.net winforms application. If I run code such as the following: Dim objWord As Object Dim objWrdDoc As Object Dim count As Integer...
0
shahjapan
by: shahjapan | last post by:
Can anyone tell me using C# or VB.NET Word Interop how to insert sub Rows in a Cell. Regards, Japan Shah
1
by: =?ISO-8859-1?Q?S=F8ren?= | last post by:
Hi guys I got the following code: ------------------------------------------------------- Dim Word As New Microsoft.Office.Interop.Word.Application Dim Document As...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.