Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. WinForms / WPF .NET
Generatore codice a barre
giovedì 17 febbraio 2005 - 00.03
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
kevin
Profilo
| Junior Member
73
messaggi | Data Invio:
gio 17 feb 2005 - 00:03
Ciao a tutti,
vorrei integrare con una applicazione la stampa del codice a barre,
io uso visual basic.net, come posso fare a stampare i codici a barre?
Grazie 1000
Brainkiller
Profilo
| Guru
7.999
messaggi | Data Invio:
gio 17 feb 2005 - 00:06
Prova a leggere questo Thread di giornata:
http://www.dotnethell.it/forum/messages.aspx?ThreadID=2993
ciao
david
apaglia
Profilo
| Newbie
2
messaggi | Data Invio:
ven 25 feb 2005 - 17:37
provate questo sito www.neodynamic.com
Io lo sto usando ed é eccezionale !
apaglia
Profilo
| Newbie
2
messaggi | Data Invio:
sab 26 feb 2005 - 18:25
<a href="
http://www.neodynamic.com/Products/Demos/BarcodeProfessionalWebControl/BarcodeProfessionalWebControlDemo.aspx?tabid=60&prodid=1">Demo
On line per ASP.NET</a>
kevin
Profilo
| Junior Member
73
messaggi | Data Invio:
lun 7 mar 2005 - 18:52
Ciao a tutti,
ho installato il carattere (IDAutomation code 39) che da la possibilita di scrivere in una textbox codici a barre,
per fare questo ho fatto una textbox1 con scritto il codice a barre che voglio stampare e per stamparlo faccio cosi,
'Stampa form corrente
Private Declare Function BitBlt Lib "gdi32.dll" Alias "BitBlt" (ByVal _
hdcDest As IntPtr, ByVal nXDest As Integer, ByVal nYDest As _
Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal _
hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, _
ByVal dwRop As System.Int32) As Long
Dim memoryImage As Bitmap
Private Sub CaptureScreen()
Dim mygraphics As Graphics = Me.CreateGraphics()
Dim s As Size = Me.Size
memoryImage = New Bitmap(s.Width, s.Height, mygraphics)
Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage)
Dim dc1 As IntPtr = mygraphics.GetHdc
Dim dc2 As IntPtr = memoryGraphics.GetHdc
BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, _
Me.ClientRectangle.Height, dc1, 0, 0, 13369376)
mygraphics.ReleaseHdc(dc1)
memoryGraphics.ReleaseHdc(dc2)
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, _
ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles _
PrintDocument1.PrintPage
e.Graphics.DrawImage(memoryImage, 0, 0)
End Sub
Private Sub PrintButton_Click(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles PrintButton.Click
CaptureScreen()
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.Show()
End Sub
alla pressione del button "PrintButton" lui mi stampa il form,
il problema è che la stampa è a bassissima risoluzione, e il lettore di codici a barre nn mi legge il codice che ho stampato,
ho provato ad alzare al massimo la qualita di stampa, ma il risultato nn cambia,
qualcuno sa cosa posso fare per catturare con maggiore risoluzione un form o se ho sbagliato qualcosa nel codice?
Grazie
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !