printing with word in .Net application
- From: steven <user@xxxxxxxxxxx>
- Date: Fri, 08 Feb 2008 15:47:41 +0100
Hello,
In my .net application, I use word templates for printing. I programmatorically fill in the template, and add it to word, then I print the word document.
However, I always get the message:
The margins of section x are set outside the printable area of the page. Do you want to continue?
This is my code:
pd.PrinterSettings = New System.Drawing.Printing.PrinterSettings
pd.ShowDialog()
myword.ActivePrinter = pd.PrinterSettings.PrinterName
myword.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone
'this line is causing the error:
myword.ActiveDocument.PrintOut(, , , , , , , pd.PrinterSettings.Copies)
I can 't get rid of this message. Any help?
Many thanks,
Steven
.
- Follow-Ups:
- Re: printing with word in .Net application
- From: Teemu
- Re: printing with word in .Net application
- Prev by Date: Re: FileSystemWatcher Changed Event Double Activation
- Next by Date: Re: printing with word in .Net application
- Previous by thread: Best Stand Alone Database For Laptop in VB.Net?
- Next by thread: Re: printing with word in .Net application
- Index(es):
Relevant Pages
|