Hej!Lägga till Ny "Papersize" till windowsskrivare med kod i VB.Net 2005
Någon som vet hur man gör?
Msdn - online finns en som ser ut så här:
-----------------------------------------------------
Private Sub addPaperSize()
' Add list of supported paper sizes found on the printer.
' The DisplayMember property is used to identify the property that will provide the display string.
cmbPaperSize.DisplayMember = "PaperName"
Me.cmbPaperSize.Items.Clear()
PSS.PrinterSettings.PrinterName = Me.cmbPrinters.SelectedItem.ToString
Dim i As Integer
Dim pkSize As Printing.PaperSize
For i = 0 To PSS.PrinterSettings.PaperSizes.Count - 1
pkSize = PSS.PrinterSettings.PaperSizes.Item(i)
cmbPaperSize.Items.Add(pkSize)
Next
' Create a PaperSize and specify the custom paper size through the constructor and add to combobox.
Dim pkCustomSize1 As New Printing.PaperSize("Custom Paper Size", 100, 200)
cmbPaperSize.Items.Add(pkCustomSize1)
End Sub
--------------------------------------------------------------------
Fungerar inte mer än att den lägger till en ny post i comboboxen.
Finns en lösning i C, men jag kan inte C..
(http://www.codeproject.com/csharp/custom_paper_sizes.asp?df=100&forumid=232973&exp=0&select=1851423)