|
It's been a long time since i stop using my vb6.
Now i'm using vb2005.
You can store many kind of file into your OLE object field.
THe concept is:
First, you need to read all bytes of your file and put it into an array of bytes.
Last, then you can store this array into your OLE Object. Simple isn't it?
In VB2005 you can do this with a line of code:
--------------------------------------------------------------
Imports System
Import System.IO
Class Streamer
'It will return array of bytes.
Public Function GetByteArrayFromFile(ByVal FileName As String) As Byte()
Return File.ReadAllBytes(FileName)
End Function
'It will make the file form array of bytes.
Public Sub MakeFileFormByteArray(ByVal FileName As String, ByVal ByteStream As Byte())
File.WriteAllBytes(FileName, ByteStream)
End Sub
End Class
--------------------------------
You need to make the routine to retrieve and store the data by your own.
I believe you can do that.
If anyone can convert it to vb6? Plz Helo him
Thanks before
|
|
|
|
|
I can display my barcode in my crystal report successfully when i run at crystal report v by using code 128 font.
Unfurtunately, when i want to hook my crystal report in VB.NET form with CRViewer30.CRViewer. The barcode became a string of characters...
Isn't i need to define the code 128 font in my VB.NET form even the barcode can display properly in my crystal report..
Any idea about it?
angela
|
|
|
|
|
|
But the link of sample application that you give me just now only can use for barcode font Code 3 of 9 and can't support Code 128..
I'm searching solution for barcode font Code 128.
Thanks
angela
|
|
|
|
|
angelagke wrote: I'm searching
I see no sign of that. where have you looked ? Did you try google ? Did you search this site ? There are plenty of other barcode articles here, although that was the first one I saw in VB, plenty are in C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
yup, i also go through all VB.NET about barcode in CodeProject. Non of them are using barcode font 128...
So i can't apply those sample code in my application. I had try google, but still haven't found any solution for my problem
angela
|
|
|
|
|
Try Fontware. I have used them in the past for barcode solutions, including EAN128.
Steve Jowett
|
|
|
|
|
Hi there,
I'm using Vb 6.0 & MS access.(database connection using adodc)
I trying to use Login userid and password.
I already created the table in MS access and Forms in vb 6.0. Now i want to connect to database and as well as check the userid & password in the database. once the userid & password correct then the program will allow the user to proceed otherwise can't proceed.
pls help me to get some sample programs.
Thanx in advance.
|
|
|
|
|
Hey, i am writing a program that downloads a web document and shows it in a richtextbox, in my case the code for a html web page. so far i have go the code to load into a richtextbox with an internet traffic control, but i need all the hyperlinks to be listed in another richtextbox, treeview , or something else.
any help would be much appreciated, thanks.
Aaron
|
|
|
|
|
Hi,
I have to write a program that uses a webcam to capture an image of a barcode, then translate it to numbers then search these numbers in a database and update the time that the barcode is imaged.
I'm not a profesional programmer, I think of some ways, but I think all of them lacks something, my biggest problem is I can't find a way to capture & import the image from webcam to my program, can anyone please help me with a code or someway that I can do this task, & I think I saw a barcode translation code somewhere, can anyone please help me with it, tell me if there is any SDKs or codes that do this thing.
I'm totally out of ideas, so if someone can be so kind & give me any ideas I would be very thankful, I use VB.net for writing my code.
Thanks.
|
|
|
|
|
ashkanmm wrote: I have to write a program that uses a webcam to capture an image of a barcode
ashkanmm wrote: I'm not a profesional programmer
Only in the VB.NET forum....
There is an article on reading barcodes on CP, I thought, in C#. You can use DirectShow to get the video from the webcam, there are CP articles on this, also. Either way, I would not have thought a web cam was the ideal device for reading barcodes. Tell your boss to buy a barcode scanner, they deliver the barcode as a number to your code, and they don't cost that much.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Only in the VB.NET forum....
And by this you mean?
|
|
|
|
|
kulazfuk wrote: And by this you mean?
That this is the forum to find questions that start with 'I'm not a programmer, but I need to *insert difficult task here*'. People seem to think that if they download VB Express, they can write anything, as if by magic.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: People seem to think that if they download VB Express, they can write anything, as if by magic.
There are a few. And they're everywhere...
|
|
|
|
|
Hi there,
I have a bit of a stupid question but I just dont know how to solve it, so here goes:
I am currently busy with an application that uses tree view to traverse between screens, and at the moment I have a form for each screen.
Only the panel part of the screen changes when the user navigates so I want to change my solution to refresh the panel with the appropriate one when the user navigates.
How would I go about doing this?
Thanks,
Igor.
|
|
|
|
|
Invalidate() is the call that forces a control to redraw itself, is that what you need ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi All,
Anyone knows how to format email msg body so that it matches with word document?
For example. The word document is using centered text-align, how do I create the msg so that it will send with centered text-align as well?
Thank you
|
|
|
|
|
Yes you need to write out HTML and don't forget to set the body format to HTML. Then use a div tag or table tag and set the style property.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Thank you, but how do you know what the text alignment that word uses?
For example:
paragraph 1 (left)
Paragraph 2 (center)
paragraph 3 (right)
|
|
|
|
|
Hi
If I click on the new row in my DataGrid, I can see that I have a new row
with cells with NULL values. But if I Tab to the new row the same thing
doesn't happen, it seems like it isn't a new row. And I want the to be able
to Tab to a new row. Can I raiseevent to event myGrid_Click so the same
thing happens as if a user clicks the new row. If I can do so, please tell
me how if I can't please tell me what to do instead. I have tried to change
the CurrentCell in the method Positionchanged for CurrencyManager, and than
I can Tab to the new row, but when I use Tab again I go back to the row
earlier.
Need help !!!
Thank's Fia
|
|
|
|
|
m developing a Searching project in VB.NET 2003.
I want that after installing this project on machine, when user click the program to run, first It should ask for the Installation CD Then run the project, like it happens in Game CDs. I want to do this for the Piracy reasons. How can I do this, Kindly help me
Regards.
Ali Raza Rizvi
|
|
|
|
|
Will you kindly stick to your original
thread[^].
Either nobody knows or they haven't had the time to address your question yet.
Take a look at this[^]. It's probably not exactly what you're looking for but it should get you started.
A quick search[^] of the forums might also have provided you with some inspiration.
This sounds angry but it's not meant to be, just trying to show you how to help yourself.
|
|
|
|
|
hi,
I am using MAPI to read mails from my outlook express.I am getting and error as The outlook express is not the default mail client.can u suggest me any help as how to set my outexpress as default mail client for mapi.
I am using Outlook express 6.0
Thanks in advance
regards
Anuradha
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
new here and need some help
i did not learn vb but i need to code a project wif vb @_@
i set a button to start the validation of a textbox input of something to match a field from database, did a If and else for different situations when user input nothing or invalid stuff.
so, after that
how do i retrieve the data from the database and display the info in textbox in the windows form?
i also need help in using datagrid to connect to a database which i have and display the information from the database
thx a bunch n i need them err....asap if possible since i only haf 2 weeks to begin wif @_@
thx alot
|
|
|
|
|