Ich bin mir nicht sicher, aber kann es sein, dass dieses PrintDocument Objekt nur f�r Windows Anwendungen ist? Laut MSDN sieht es so aus.
Mit freundlichen Gr��en Andr� -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frank Matthiesen Gesendet: Mittwoch, 21. April 2004 08:43 An: [EMAIL PROTECTED] Betreff: [Asp.net] OT? Serverseitig drucken Moin! Scheint trivial, aber trotzdem funzt es ned. Ich m�chte nach Klick auf einen Button einer Webform eine Datei serverseitig ausdrucken (Standarddrucker). Aber es druckt ned. Snipped: Try streamToPrint = New StreamReader(filepath) Try printFont = New Font("Arial", 10) Dim pd As New PrintDocument AddHandler pd.PrintPage, AddressOf pd_PrintPage pd.Print() Finally streamToPrint.Close() End Try Catch ex As Exception 'Fehlerbhandlung End Try suggests? Gruss frank ************************* _______________________________________________ This ASP.NET email is sponsored by: UDEX ProMenu.Net - Die Software f�r Navigation - Jetzt kostenlos testen! Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com _______________________________________________ Asp.net Mailingliste, Postings senden an: [EMAIL PROTECTED] An-/Abmeldung und Suchfunktion unter: http://www.glengamoi.com/mailman/listinfo/asp.net ************************* ************************* _______________________________________________ This ASP.NET email is sponsored by: UDEX ProMenu.Net - Die Software f�r Navigation - Jetzt kostenlos testen! Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com _______________________________________________ Asp.net Mailingliste, Postings senden an: [EMAIL PROTECTED] An-/Abmeldung und Suchfunktion unter: http://www.glengamoi.com/mailman/listinfo/asp.net *************************
