vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
SEPA-Dateien erstellen inkl. IBAN-, BLZ-/Kontonummernprüfung  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Visual-Basic Einsteiger
Dann die Form3 
Autor: Blackbox
Datum: 22.03.16 18:56

 Sub Command3_Click()
      Dim a5 As Long, a6 As Long
      Me.Show
      Form1.Cls
      Form1.Caption = " other info.."
      Dim szprinter$
 
      szprinter$ = Space$(128)
      a = GetProfileString("windows", "device", "", szprinter$, 64)
      a1$ = Left$(szprinter$, a): a2 = InStr(a1$, ",")
      print_device$ = Left$(a1$, a2 - 1)
      Print "Printer = ", print_device$
      a3$ = Mid$(a1$, a2 + 1): a4 = InStr(a3$, ",")
      driver$ = Left$(a3$, a4 - 1)
      Print "Driver = ", driver$
      Port$ = Mid$(a1$, a2 + a4 + 1)
      Print "Port = ", Port$
      Print
      a5 = CreateIC(driver$, print_device$, Port$, 0)
      a6 = GetDeviceCaps(a5, 0)
      Print "Driver Version : "; Hex$(a6)
      a7 = GetDeviceCaps(a5, TECHNOLOGY)
      If a7 And DT_RASPRINTER Then
         Print "Technology: ", "DT_RASPRINTER Raster Printer"
      End If
      Print
      Print "CLIPCAPS (Clipping Capabilities)"
      Print
      a8 = GetDeviceCaps(a5, CLIPCAPS)
      If a8 And CP_RECTANGLE Then
         Print Space$(5) & "CP_RECTANGLE", "Can Clip To Rectangle:", "Yes"
      Else
         Print Space$(5) & "CP_RECTANGLE", "Can Clip To Rectangle:", "No"
      End If
      Print
      Print "RASTERCAPS (Raster Capabilities)"
      Print
      a9 = GetDeviceCaps(a5, RASTERCAPS)
      If a9 And RC_BITBLT Then
         Print Space$(5) & "RC_BITBLT", "Capable of simple BitBlt:", "Yes"
      Else
         Print Space$(5) & "RC_BITBLT", "Capable of simple BitBlt:", "No"
      End If
      If a9 And RC_BANDING Then
         Print Space$(5) & "RC_BANDING", "Requires banding support:", "Yes"
      Else
         Print Space$(5) & "RC_BANDING", "Requires banding support:", "No"
      End If
      If a9 And RC_SCALING Then
         Print Space$(5) & "RC_SCALING", "Requires scaling support:", "Yes"
      Else
         Print Space$(5) & "RC_SCALING", "Requires scaling support:", "No"
      End If
      If a9 And RC_BITMAP64 Then
         Print Space$(5) & "RC_BITMAP64", "Supports bitmaps >64:", "Yes"
      Else
         Print Space$(5) & "RC_BITMAP64", "Supports bitmaps >64:", "No"
      End If
      If a9 And RC_GDI20_OUTPUT Then
        Print Space$(5) & "RC_GDI20_OUTPUT", "Has 2.0 output calls:", "Yes"
      Else
         Print Space$(5) & "RC_GDI20_OUTPUT", "Has 2.0 output calls:", "No"
      End If
      If a9 And RC_DI_BITMAP Then
         Print Space$(5) & "RC_DI_BITMAP", "Supports DIB to Memory:", "Yes"
      Else
         Print Space$(5) & "RC_DI_BITMAP", "Supports DIB to Memory:", "No"
      End If
      If a9 And RC_PALETTE Then
         Print Space$(5) & "RC_PALETTE", "Supports a palette:", "Yes"
      Else
         Print Space$(5) & "RC_PALETTE", "Supports a palette:", "No"
      End If
      If a9 And RC_DIBTODEV Then
         ' Enter the following two lines as one, single line of code:
         Print Space$(5) & "RC_DIBTODEV", "Supports bitmap conversion:", "Yes"
      Else
         ' Enter the following two lines as one, single line of code:
         Print Space$(5) & "RC_DIBTODEV", "Supports bitmap conversion:", "No"
      End If
      If a9 And RC_BIGFONT Then
         Print Space$(5) & "RC_BIGFONT", "Supports fonts >64K:", "Yes"
      Else
         Print Space$(5) & "RC_BIGFONT", "Supports fonts >64K:", "No"
      End If
      If a9 And RC_STRETCHBLT Then
         Print Space$(5) & "RC_STRETCHBLT", "Supports StretchBlt:", "Yes"
      Else
         Print Space$(5) & "RC_STRETCHBLT", "Supports StretchBlt:", "No"
      End If
      If a9 And RC_FLOODFILL Then
         Print Space$(5) & "RC_FLOODFILL", "Supports FloodFill:", "Yes"
      Else
         Print Space$(5) & "RC_FLOODFILL", "Supports FloodFill:", "No"
      End If
      If a9 And RC_STRETCHDIB Then
        Print Space$(5) & "RC_STRETCHDIB", "Supports StretchDIBits:", "Yes"
      Else
         Print Space$(5) & "RC_STRETCHDIB", "Supports StretchDIBits:", "No"
      End If
      finished = DeleteDC(a5)
   End Sub
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Fontgröße bei Printer-Objekt und Picturebox unterschiedlich?2.282DustyD.20.03.16 16:52
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.536Blackbox20.03.16 18:36
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.413DustyD.20.03.16 19:41
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.488Blackbox20.03.16 19:47
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.436DustyD.21.03.16 21:18
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.424Blackbox22.03.16 18:53
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.406DustyD.23.03.16 00:13
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.470Blackbox23.03.16 15:30
Dann die Form1.431Blackbox22.03.16 18:54
Dann die Form21.594Blackbox22.03.16 18:56
Dann die Form31.474Blackbox22.03.16 18:56
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.362DustyD.09.04.16 20:17

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel