Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut()
Advanced properties for PrintOut() Advanced properties for PrintOut()
Advanced properties for PrintOut()
Go Back  Xtreme Visual Basic Talk > > > > Advanced properties for PrintOut()


Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2003, 11:33 AM
Oracle Oracle is offline
Newcomer
 
Join Date: Jun 2003
Posts: 2
Question [Word] Advanced properties for PrintOut()


Hi !

Sorry for my bad english...

I need to print a word document from Vb code. (or eventualy from C#). It's import the user could zoom ; he can say : "i want 2/4/6 pages on a page, with/without border frame"

- I first used the Windows PrintDialog (System.Windows.Form.PrintDialog) to receive choices of the user.

Long traitment...

Then i called PrintOut. I found in PrintDialog properties some properties like pages, copies, collate, but i never found advanced properties of a specified printer, where i'll could find zoom propert ("4 page per page"). This property seems to be a printer driver property only. I never found those properties and i don't know what is the equivalent argument for PrintOut()... arghh!

- Then i used the Word PrintDialog, Dialogs(Microsoft.Office.Word.Interop.Word.WdWordDialog.wdDialogPrintF ile). First only a Dialogs.Show().

Long traitement..

Then i call Dialogs.Execute, to finally ask to word to launch his printing, with user configuration. It's strange, Word print with advanced properties of specified printer (like zoom, "4 page per page") and with the "Options..." properties, but he just ignore classic properties of the main print dialog, like "all/selection/range, copies, collate, zoom (another zoom )". With word printdialog, i noticed lots of bugs with Word if margins are out of doc...

So...
-Somebody know where are advanced printer properties like zoom ?
-Somebody know what is the argument of PrintOut i need to use for this zoom ?
-Is it only possible?
-Have you more information about all PrintOut arguments, like append, background ?
-... and if i can simply give to PrintOut my PrinterDialog settings ?
-Any other suggestion?

I can't call the first PrintDialog (of Windows or Word) at the end of treatment, just before call the PrintOut/Dialog.Execute, because Word will potentially launch a one day repagination... (big big big document)

Last edited by Oracle; 06-19-2003 at 11:38 AM.
Reply With Quote
  #2  
Old 06-27-2003, 07:11 AM
Oracle Oracle is offline
Newcomer
 
Join Date: Jun 2003
Posts: 2
Default

No idea?
Reply With Quote
  #3  
Old 07-16-2003, 05:25 AM
rasimsen rasimsen is offline
Newcomer
 
Join Date: Jul 2003
Posts: 2
Wink printout

i think this macro code help you!

Sub Macro1()
'
' Macro1 Macro

Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="1", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub


you can merge this code in your vba code

good luck!



-----------------------------------------------
Quote:
Originally Posted by Oracle
Hi !

Sorry for my bad english...

I need to print a word document from Vb code. (or eventualy from C#). It's import the user could zoom ; he can say : "i want 2/4/6 pages on a page, with/without border frame"

- I first used the Windows PrintDialog (System.Windows.Form.PrintDialog) to receive choices of the user.

Long traitment...

Then i called PrintOut. I found in PrintDialog properties some properties like pages, copies, collate, but i never found advanced properties of a specified printer, where i'll could find zoom propert ("4 page per page"). This property seems to be a printer driver property only. I never found those properties and i don't know what is the equivalent argument for PrintOut()... arghh!

- Then i used the Word PrintDialog, Dialogs(Microsoft.Office.Word.Interop.Word.WdWordDialog.wdDialogPrintF ile). First only a Dialogs.Show().

Long traitement..

Then i call Dialogs.Execute, to finally ask to word to launch his printing, with user configuration. It's strange, Word print with advanced properties of specified printer (like zoom, "4 page per page") and with the "Options..." properties, but he just ignore classic properties of the main print dialog, like "all/selection/range, copies, collate, zoom (another zoom )". With word printdialog, i noticed lots of bugs with Word if margins are out of doc...

So...
-Somebody know where are advanced printer properties like zoom ?
-Somebody know what is the argument of PrintOut i need to use for this zoom ?
-Is it only possible?
-Have you more information about all PrintOut arguments, like append, background ?
-... and if i can simply give to PrintOut my PrinterDialog settings ?
-Any other suggestion?

I can't call the first PrintDialog (of Windows or Word) at the end of treatment, just before call the PrintOut/Dialog.Execute, because Word will potentially launch a one day repagination... (big big big document)

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties of usercontrol do not work nitz Interface and Graphics 4 08-20-2002 11:26 PM
Accessing properties using text strings. esmithz General 3 07-29-2002 11:42 AM
Printer Properties loquin General 0 12-14-2001 11:26 PM
Help with properties Ruttager General 1 10-27-2001 04:09 AM
Special .doc-file properties Hajü Schwippert General 2 09-26-2001 07:53 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut() Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut() Advanced properties for PrintOut()
Advanced properties for PrintOut()
Advanced properties for PrintOut()
 
Advanced properties for PrintOut()
Advanced properties for PrintOut()
 
-->