I am trying to save an image object to an MP3 tag to do this i need the file contents of a .jpg file as a string ... the following method works to get this:
vb
Image.Save(tempPic, Drawing.Imaging.ImageFormat.Jpeg)
Dim sPicture_Data = Space(FileLen(tempPic))
Dim FileNo = FreeFile()
1. Since the plate number will be stored directly into the database after being converted from the image. However, due to the conversion process of the image into text takes few seconds, it is not able to be stored into the database... May i know is there any code that can solve it? Maybe can delay the process of storing the plate number?
2. Why during running my VB, when i click on the listbox, sometimes it will immediately pop up a dialog box to ask for video source, but sometimes not? How can i solve it?
if this is the case.What I'm trying to do:1) have a way to save / copy screenshot from an Air app2) automatically paste such screenshot into a new powerpoint slide in the current presentation
I have a web service that is currently calling the DOS command copy to put a text file to a specified network share.
This is the code: Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel Imports System.Data Imports System.IO Imports System.Xml [Code] .....
It appears doing this might be causing some problems and our front-end programmer suggested I see if I can output the stream "output" directly to the network shared printer specified by the SOAP request. Is this possible? This is VS 2010
im trying to write to an sql database. im inserting an image, as well as some other information. I am using the following code which works fine, as long as i do not add an extra column/variable "LOCATION" in to the mix and leave "
commented out. *this is undesireable as im trying to add extra criteria to be saved like LOCATION.
Try Dim st As New FileStream("\serverfolder1storage" & "pdftemplate.jpg", FileMode.Open, FileAccess.Read) Dim mbr As BinaryReader = New BinaryReader(st) Dim buffer(st.Length) As Byte
[code]....
i am trying to store the location e.g "c:file1.jpg" in the sql db. Can anyone reccomend a solution to this using OLEDB? ideally i need to add approx 4 more variables. e,g
I have this as code to run the program Process.Start(ListBox1.SelectedItem.ToString.Split(New String() {" "}, StringSplitOptions.None)(1))
Which used to work but then I added a "Preview image" function like this : (ListBox1.SelectedItem.ToString.Split(New String() {" Image:"}, StringSplitOptions.None)(1)) I now discovered that the first code is useless, because it selects everything after " " to run, including the "Image:"
This is how a listbox item is stored: Tomb Raider Level Editor - Original C:Program FilesTomb Raider - Level Editor omb4.exe Image:C:Program FilesTomb Raider - Level Editorload.bmp
As you can see it'll use this C:Program FilesTomb Raider - Level Editor omb4.exe Image:C:Program FilesTomb Raider - Level Editorload.bmp to run Is there any way I can make it choose the path from " " and when it finds "image:" it stops?
I assume that this will be an easy one for you guys. I have never dabbled with drawing in VB.NET. I have searched the forum and Google already, but have turned up nothing to help me. Here is my problem. I have an image that is in an image box. I would like to draw a string of text on it, centered vertically and horizontally. Here is what I am using to draw the text.
Instead of having 1 exe file running..everything. I'd like to split it up, and allow to have multiple things running.Now, to help fight piracy, etc. In this main program, will verify an account, etc. Then if they have the program installed, cool. Allow them to run it
Using MODI dll I can obtain the text from a image saved on the HD:
[Code]...
my goal is to obtain the OCR directly from a image stored in the Clipboard... but everything I write in the miDoc.Create(Clipboard......) code I receive the message that it's not a String what to write instead of ("c:example.tif") to read the image directly from the Clipboard?
I try to print the Crystal Report, without Report Preview and following codes I used.
Dim MISObjRpt As New CrystalReport1 MISObjRpt.SetDataSource(Ds1.Tables(0)) If PrintDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then PrintDialog1.AllowSomePages = True MISObjRpt.PrintOptions.PrinterName = PrintDialog1.PrinterSettings.PrinterName MISObjRpt.PrintToPrinter(PrintDialog1.PrinterSettings.Copies, False, PrintDialog1.PrinterSettings.FromPage, PrintDialog1.PrinterSettings.ToPage) End If
But the problem is I can't select the PAGES RANGE. So how to solve this problem?
I just have a few problems regarding my application, any suggestions would be great, thanks. (I'm quite new to this stuff, making an application(s) for fun haha.)
1) I'm planning to distribute this application, but the problem is if I send it to another computer the user will most likely not be "Home2" and this code wouldn't work right?.
Code: If (File.Exists("C:Documents and SettingsHome2Start MenuProgramsStartupexample.exe")) = True Then File.SetAttributes("C:Documents and SettingsHome2Start MenuProgramsStartupexample.exe", attribute) ElseIf (File.Exists("C:Documents and SettingsHome2Start MenuProgramsStartupexample.exe")) = False Then End If
Now, i have a form which would usually post the text which should be writen, so, can this be done directly, without that form, using httpwebrequest in VB?
I'd like to verify if an image control has an image loaded . If it does , I want to unload that image (and load no image) , but if the image control has no image loaded , I want to load an image . Is it possible ?
If ImageMY.Image.Equals(Nothing) Then ImageMY.Image = System.Drawing.Image.FromFile("C:ImageBlaBlaBla.jpg") Else
I try to add text strings to an image but keep the metadata of the original image. The problem is How can I save ImgMetaData (from the original image) to the new image?
Here are the codes:
Public ImgMetaData As BitmapMetadata Public myImageCodecInfo As ImageCodecInfo Public myEncoder As Encoder
I'm trying to update some data fields in an existing data table, and want to access the data directly. I know it's possible, and I used to do it years ago in VBA, where you could do things like
i'm tying to send email in my application directly by the smtp server but the server doesn't allow me to do that.The application its used by everyone in the company, so i set the smtp client UseDefaultCredentials to True, but the server replies with this when i try to send an email:[code].....If i set the credentials by hand, the server sends the email. So my problem is how to make this work to everyone? I don't want to have one public/friend var all time in the application with the credentials of the current user?
Is there an easy way to consume xml to access any of the nodes directly without reading line by line?Here is a sample set of the xml working with. It contains two records of data. I am trying to find a way to load it so if I wanted to get say PostalCode and say Site SID value quickly.
HTML <?xml version="1.0" encoding="utf-8"?><MainSite><MainSites Found="201" Returned="20" Status="0"><Site SID="123456"><Relevance>0.985</Relevance><Title>JDoe</Title><DateModified Date="2010-01-29T01:05:00">1/29/2010</DateModified><DateCreated Date="2010-01-29T01:05:00">1/29/2010</DateCreated><PersonalData><Confidential>0</Confidential><Name><First>John</First><Middle>
In VB6 you could BITBLT things around before refreshing the screen. In .NET, I'm aware of DrawImage, but that can only be done on a paint event rather than before anything gets painted. The issue I have is, I need to open several files with image data in them and then build a bigger image with those smaller images. Before I could open them, BITBLT them to a Buffer. As far as I can tell .NET offers no way to do this as the only function I've been able to find (DrawImage) only works within the paint event. Is there still a way to do this in VS08 or no?
I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.
Ive been programming in VB6 for years, i figured its time for an upgrade. Here's what im doing, and what the problem is:
Im loading a bunch of pictures on top of one image. They are all PNG files, and some of the images have transparent edges, and some semi-transparency within the image itself.
So basically, i need to be able to load these images on top of the other images, and still maintain the transparency.
Is this possible in VB08? This is one of the main reasons i moved to 08 from vb6, more things possible including multithreading.
I need to know how to use listview, I'm having trouble using it.What are listviews uses?What can be listed in listview?What cannot be listview?If an image is in listview, will it display a thumbnail of the image?
I'm having a problem getting the src of the image the mouse is hovering over in a webbrowser. I can get an href just fine, just not an src. To get the href, I used this
I am trying to edit an image. I can open the image with Picturebox1.load(mypicture)
I can change the pixels/edit the picture by Dim img as new bitmap(picturebox1.image)
[Code]...
now here is the weird part. When I save the image the filesize INCREASES..but the picture dimensions are the same Example... TEST.PNG 1.3KB, when opened up via picturebox/saved the image is now 2.3KB
not sure why...i even though I specify system.drawing.imaging.imageformat.PNG
samething with JPG... it actually SHRINKS it evenmore.. example 88KB jpeg.. saved as jpeg is now 47.7KB...