Blog Home  Home Feed your aggregator (RSS 2.0)  
artiso Blog - Winforms drucken
Neues rund um's Thema .Net
 
 Friday, September 22, 2006

.net bietet keine Funktion, um eine Form einfach auszudrucken. Diese Lücke schließt nun Microsofts PrintForm Component 1.0.

http://www.microsoft.com/downloads/details.aspx?familyid=286111b0-6965-46cc-bf6f-c5ee63b1f98c&displaylang=en#filelist

Damit läßt sich bereits mit 2 Zeilen Code eine Form ausdrucken.

this.printForm1.Form = this;
this.printForm1.Print();

Die Komponentebietet darüber hinaus noch eine Vielzahl von Einstellmöglichkeiten, z.B. zur Anzeige einer Druckvorschau etc.

Übrigens nicht durch den Namespace (Microsoft.VisualBasic.Powerpacks) irritieren lassen, die Compunente funktioniert auch unter C# ;-)

Friday, September 22, 2006 5:52:56 AM (Mitteleuropäische Zeit, UTC+01:00)  #    Comments [0]    | 
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Copyright © 2008 Thomas. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: