|
|
hi, i have this problem.
i want send a text "hello world" a printer epson in escape mode, in VB.NET
can i have a sample?
thanks
|
|
|
|
|
It's not "escape mode". You're sending raw data to the printer, which you normally cannot do under .NET. But, there's always a way around that.
Read this[^].
|
|
|
|
|
|
Not even close. That has nothing to do with printing at all. It's controlling individual pins on the parallel port.
|
|
|
|
|
Your correct. Sorry it was a long day and for some reason LPT1 was in my head and not printing. I was looking for a way to open and write raw data to parallel port.
Now that I have had a good night sleep, it seems like there is a way to write raw data to printer using the System.Drawing.Printing namespace. If I get time I'll dig out one of my old projects, I think I actually have done raw mode to printer, although it may have been over TCP/IP not parallel port???
|
|
|
|
|
|
how to change visual studio IDE language . by default it is 1033 for english. now i want to change ide to other language . how can i do?
|
|
|
|
|
Tools > Options > Environment > International Settings
|
|
|
|
|
How Can I use Code Snippets with color code in my application like this::
http://hilite.me/[^]
|
|
|
|
|
That's interesting, but what are you trying to accomplish? Without that we can't help you.
|
|
|
|
|
I want to make a source code collection to use like a reference
and save tutorial source codes with those information into that collection
and I need somethings like 'Source Code Annotation' Like 'Code tools' of 'Post Message' from this website...
Help me... whatever however about that
I Use VB.Net ...
Thanks, for your reply ...
|
|
|
|
|
You could try my Code Snippet Manager[^], I'm sure it could be adapted to VB.NET without too much difficulty.
|
|
|
|
|
That dont work ... (Just Create Notify Icon and ContextMenu , nothing else...)
Please help more than it... (if possible...)
thank you
|
|
|
|
|
What "don't work"? If you wish for help with your problems then it's about time you made a greater effort to explain them in proper technical detail.
|
|
|
|
|
Go to this link address and download and use this project...
Code Snippet Manager[^]
That project just create a notify icon with a context menu !no more
|
|
|
|
|
Maybe if you bothered to read the article you would find out how it worked and how it might be able to help you. You really need to make a bit more of an effort for yourself and not expect to be spoon fed for the rest of your life.
|
|
|
|
|
Great link. Thanks Richard.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Thanks, hope you find it useful.
|
|
|
|
|
I wanted to know if I can use Aforge library for YUV display in a GUI that I want to create, I just wanted to know if I can use Aforge for this?,
I have used OpenCV for this, But that is not customizable. Thus exploring other options
|
|
|
|
|
How to Save/Load Files like Pictures in/from Database
|
|
|
|
|
|
Thank you body
|
|
|
|
|
'Save
Dim ms As New MemoryStream
PictureBox1.Image.Save(ms, PictureBox1.Image.RawFormat)
Dim strType As String = ToolStripStatusLabel1.Text.Substring(ToolStripStatusLabel1.Text.LastIndexOf("."), 4)
Dim arrImage() As Byte = ms.GetBuffer
ms.Close()
Dim strFileName As String = IO.Path.GetFileName(ToolStripStatusLabel1.Text)
Dim connectionString As String = "Data Source=MIKEY-HP\jtsql;Initial Catalog=Images;Integrated Security=True"
Dim cnn As New SqlConnection(connectionString)
Dim DateFiled As Date = FormatDateTime(Now(), DateFormat.ShortDate)
Dim strSQL As String = _
"INSERT INTO ImageTab (ImageData,Type,ImgFileName,DateFiled)" & _
"VALUES (@ImageData,@Type,@Filename,'" & DateFiled & "')"
Dim cmd As New SqlCommand(strSQL, cnn)
With cmd
.Parameters.Add(New SqlParameter("@Filename", SqlDbType.VarChar, 50)).Value = strFileName
.Parameters.Add(New SqlParameter("@Type", SqlDbType.VarChar, 10)).Value = strType
.Parameters.Add(New SqlParameter("@ImageData", SqlDbType.Image)).Value = arrImage
End With
Try
cnn.Open()
cmd.ExecuteNonQuery()
cnn.Close()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
'Load
Try
Me.ImageTabTableAdapter.FillBy(Me.ImagesDataSet.ImageTab)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
|
|
|
|
|
how to type in a datagridview textbox column and find in a listbox like a tally finds in vb.net
|
|
|
|