Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. WinForms / WPF .NET
Print in VB.NET
lunedì 12 dicembre 2005 - 17.28
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
deejay
Profilo
| Newbie
10
messaggi | Data Invio:
lun 12 dic 2005 - 17:28
I must print in a printer with a apecial page setting, I try this code :
Dim dlgSetting As New PrintDialog
dlgSetting.Document = prnStampa
dlgSetting.PrinterSettings.DefaultPageSettings.PaperSize.Height = 400
dlgSetting.PrinterSettings.DefaultPageSettings.PaperSize.Width = 865
but I receive this error :
"An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll
Additional information: Cannot change a PaperSize unless its Kind is Custom."
some ideas ??
Thanks
Nicola De Vita
deejay
Profilo
| Newbie
10
messaggi | Data Invio:
lun 12 dic 2005 - 17:29
Potete rispondere anche in Italiano :D
Grazie
totti240282
Profilo
| Guru
1.574
messaggi | Data Invio:
lun 12 dic 2005 - 21:30
cosa non hai capito ???
C'è solo un capitano !!!!!!
Brainkiller
Profilo
| Guru
7.999
messaggi | Data Invio:
mar 13 dic 2005 - 11:05
>"An unhandled exception of type 'System.ArgumentException' occurred
>in system.drawing.dll
>Additional information: Cannot change a PaperSize unless its
> Kind is Custom."
Evidentemente devi assegna a PaperSize la costante Custom.
In questo modo segnali che la tua pagina sarà personalizzata.
A quel punto puoi impostare le dimensioni (altezza e larghezza).
Verifica sul Framwork alla voce PaperSize
ciao
David De Giacomi
Microsoft MVP
http://blogs.dotnethell.it/david/
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !