Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wie drucke ich ein Formular? VB.NET

Empfohlene Antworten

Hallo,

meine Titel ist vielleicht falsch verfasst, denn wie ich ein Formular drucke ist mir schon bekannt. Dabei muss ich eine funktion aus der gdi32.dll importieren.

Das Problem ist, das dabei ja ein screenshot gemacht wird. Wenn jetzt aber mein form größer ist, als beispielsweise die Monitorauflösung, bekomme ich nicht das ganze Form gedruckt. in meinem falle wäre die Höhe in etwa die eines A4 Papiers.

Wie kann ich also ein Bild von meinem Formular machen, jedoch nicht per screenshot?

LG

Gateway

  • Autor

Sry für Doppelpost, aber es hat sich schon erledigt. Ich mach zu erst ein bmp darauf und übergebe es dann dem printdocument!


  Dim g As Graphics = frm.CreateGraphics

        Dim bmp As New Bitmap(frm.Width, frm.Height)

        frm.DrawToBitmap(bmp, New Rectangle(0, 0, frm.Width, frm.Height))

Ein Alternativvorschlag wäre natürlich auch, ein HTML-Dokument erstellen zu lassen und dann mit dem Standardbrowser zu öffnen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.