|
|
OK, will you support ActiveX controls, javascript, etc ? How many years do you have to do this, assuming you'll be alone ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I have a multi-page tiff that's over 1meg. I get an 'out of memory' error trying to open it from the method 'fromfile' I have tried 'fromstream' and can't get past 'an invalid parameter used' when everything that I'm using is correct. My ultimate goal is to get a count of how many pages(images) are embedded in the image file so that I can tell how many images a java applet can expect in the file. This code works but craps out of certain files and I don't know why... Any help would be appreciated...
Dim oFile As New FileStream(sTiffFilePath, FileMode.Open, FileAccess.Read)
oImage = System.Drawing.Image.FromStream(oFile, True, True)
'exception -- invalid parameter used
or
oImage = Drawing.Image.FromFile(sTiffFilePath)
'exception -- out of memory
Dim oGuid As Guid = (oImage.FrameDimensionsList(0))
Dim oDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(oGuid)
iGetPageCount = oImage.GetFrameCount(oDimension)
oDimension = Nothing
oGuid = Nothing
oImage.Dispose()
oImage = Nothing
|
|
|
|
|
You'll have to check the compression used in the TIFF. GDI+ doesn't support JPEG compressed TIFF's.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave, that's what I was a afraid of...
Nathan
|
|
|
|
|
HI,
I have a string eg. 000-000-000-000 and I want to replace the last "-" with an "_"
Can anyone help me to do this.
Thanks
|
|
|
|
|
hi,
String.Replace('-','_')
hope this works.
nitin...
|
|
|
|
|
Try using regular expressions like:
regex.Replace( yourString, "-", "_")
where regex is the regular expression and yourString is the string in question. Hope this sheds some light
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Dim s As String = "000-000-000-000"
Dim i As Int16 = InStrRev(s, "-")
Mid(s, i, 1) = "_"
MsgBox(s)
|
|
|
|
|
Will the string always be the same length, as in 4 sets of characters seperated by 3 dashes?
Posted by The ANZAC
|
|
|
|
|
Is this VB.NET ? If so, then you should use the string. methods, not the ones provided. But, any sort of replace method will replace them all. as someone suggested, if the format is always the same, you can use an index to replace the one character that's in the same place evry time.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
I'm not sure under which category I should ask this. But here goes:
I am trying to implement a search which will allow a user to search for Projects by the 'StartDate'. What they can do is search for Projects:
[Greater Than] date entered,
[Less Than] date entered,
[Equal To] date entered,
[Greater Than or Equal To] date entered,
[Less Than or Equal To] date entered.
I have a subroutine which passes the date inputted by the user to a method in a class file.
This method accept the input as String.
I would like to know how to proceed with determining how to tell the system to check if the input date is greater than, less than, etc..
I mean.. SQL can say 2 is greater than 1, but can it say 01/01/2006 is greater than 01/01/2005 ??? If not, do I need to do anything in VB.net?? Or even so, do I need to do anything special to the SQL Query ?
Please help. Thank you.
|
|
|
|
|
Wouldnt you also need a parameter to say how you want the dates compared? Greater than / Less than / ...
All relational databases support date comparisons, provided that you have defined the column as a date type.
|
|
|
|
|
Ah I see. So what you are telling me is that SQL Queries will understand that 01/01/2006 is GREATER THAN 01/01/2005.. even tho they are DATES and Numbers.
That's all I needed to know ... for now >=)
Thanks for the reply.
|
|
|
|
|
u CAN compare datetime variables in sql as in vb too,
BY < or > or =
|
|
|
|
|
Hi All,
Anybody know how to drag drop multiple rows from one datagridview
to another.I know how to drag drop single row.If any body have idea please
guide me how to do this.
thanks,
rama.
venkat
|
|
|
|
|
MonthCalendar DateChanged event gets fired automatically in every 2 minutes.
Does anyone know why this happen and how can stop this?
Thanks
|
|
|
|
|
Mathew Sujesh wrote: MonthCalendar DateChanged event gets fired automatically in every 2 minutes
By an chance are you using a Timer somewheres that triggers the event every two minutes?
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Hi
I'd like to change the source code of some html pages before the page will be dispayed for the user. For example the login data should be filled in and not changebal any more. that means a textbox should get the value information and the readonly.
But at least i have no idear how to manage.
Thanks for any help
Tim
|
|
|
|
|
Hi,
I want to put together an application which allows the user to enter prices from their suppliers.
In a lot of cases, suppliers offer price breaks - so the more the customer buys, the cheaper the unit price will be for that item.
My question is two fold ....
1. Is the DataGrid the best method of recording prices "from" and "to"? I suspect it is, but if there is a better method, I'd be interested to hear.
2. If the DataGrid is the best method, how do I validate the entries to ensure that the user is filling the grid in correctly? For example, if the user enters a price for 1 to 10 units as being £1, but they accidentally enter a second price for 9 to 20 as £0.90 - how do I catch it?
Thanks in advance.
|
|
|
|
|
how to use events in communicating between two applications.
|
|
|
|
|
WM_COPYDATA
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi
i want to do it in vb.net. the process is like this.
1 application is controlling motion and other is vision checking.
when reached to a position will send an event to 2nd application to do checking. once the checkig is done will inform the motion about the status.
Thanks in advance.
|
|
|
|
|
OK. WM_COPYDATA is still the easiest method for inter process communication.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
sorry i dont get any seperate section for VB
i have a problem related to vb and sql-server connectivity.
i have developed an application thru vb and sql-server.
when i m using it frm my pc it works fine
but frm client pc it does not connect to database.
in fact i tried different server to connect from client's pc..
still same error
"SQL-Server Does Not exist or access is denied."
although when i ping the server frm client's pc i m gettin reply.
error on this line....
my connection string is
costr="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;password=;Initial Catalog=TestCapex;Data Source=192.168.41.2"
conn.open()
this ip is in my local network
on client pc sql-server client utility is installed
wht to do..
i m very much confused
plz,plz,plz
i ll be very thankful
reply ASAP..
Ajay
|
|
|
|