|
The problem is that I can connect to my database but I can't get the information from the file.
The file A12_BLANK (the name of the file I want to insert in a table) is a excel file.
thanks.
-- modified at 8:43 Tuesday 11th September, 2007
|
|
|
|
|
So, you're code is written to open a DBASE file (hint: Connection String!), but you're trying to get it to open an Excel file?
|
|
|
|
|
your code:
<br />
DBFConnection = New Odbc.OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};Dbq=" + FileDirectory + ";")
maybe better:
<br />
DBFConnection = New Odbc.OdbcConnection("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=" + FileDirectory + ";")
please don´t ask me why driferid = 790, i didn´t try this code, found it with google.
|
|
|
|
|
it doesn't work.
thanks .
|
|
|
|
|
did you use the complete filename for the excel file?
|
|
|
|
|
I create an application and i try to access the .exe from another system in the network.
I got an error message " Request for the permission of type System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed "
How can i solve.
Thks
Yesu
|
|
|
|
|
Managed code running from a non-local source, i.e.: anything not locally attached to the machine, is run inside a heavily restricted sandbox. You've got so serious reading to do to understand Code Access Security. Just go to MSDN[^] and search for "Code Access Security".
|
|
|
|
|
Hello,
Small question, but it's given me nightmares at the moment.
Can I hold class instances in a collection, lets say arraylist?
sample code that doesn't work
<br />
Dim ClasseInstance = New Classe(parametros)<br />
<br />
' Add the instance to the arraylist<br />
InstanceHolder.Add(ClasseInstance)<br />
it's dashing the following error when i try to add the ClasseInstance to the arraylist: Object reference not set to an instance of an object.
Can someone help me out with what i missed.
Thanks
|
|
|
|
|
This error probably means that InstanceHolder is null.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks a lot.
I feel foolish
I had this on top
Private InstanceHolder As ArrayList
instead of
Private InstanceHolder As New ArrayList
|
|
|
|
|
Hello friends,
We want to create background thread which run automatically in
regular interval
and run a particular sub ? please give your advice Thanks
Manu
|
|
|
|
|
You might wanne check out this:
' initialize
Private Timer_Queue As New System.Threading.Timer(New System.Threading.TimerCallback(AddressOf Timer_Queue_TimerCallBack), Nothing, System.Threading.Timeout.Infinite, Nothing)
Private Const Timer_QueueInterval As Long = 250
' at load or somewhere else...
Timer_Queue.Change(0, Timer_QueueInterval)
' the worker
Private Sub Timer_Queue_TimerCallBack(ByVal state As Object)
' do work
End Sub
enjoy.
|
|
|
|
|
your code "Integrating Microsoft Word in your NET applications" interested me much and I seek to make it integrated in my program but since I work with VB.net I found diffécultes with integrated in my program if you have the program in vb.net I would be very thankful if you can sent it to me by mall thank you in advance at this address "aziz_chawki@yahoo.fr"
aziz_chawki@yahoo.fr
|
|
|
|
|
aziz chawki wrote: your code "Integrating Microsoft Word in your NET applications" interested me much and I seek to make it integrated in my program but since I work with VB.net I found diffécultes with integrated in my program if you have the program in vb.net I would be very thankful if you can sent it to me by mall thank you in advance at this address
What are you talking about?
If this refers to an article on this site then use the forum at the bottom of the article page.
|
|
|
|
|
your program "Integrating Microsoft Word in your .NET applications" is in C# if you have it in vb.net send it to me pls
|
|
|
|
|
Seriously.
As you were told, the articles have forums under them, if you want to ask the author something. Asking someone to convert C# to VB.NET is just not going to happen. If you're unable to use the code via a dll, then you need to convert it yourself ( although I doubt you're capable of it, it's really not hard ), or buy a convertor, several exist.
In any case, the web abounds with examples of how to integrate Word, I don't see how you could fail to find a VB.NET sample.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
aziz chawki wrote: your program "Integrating Microsoft Word in your .NET applications" is in C#
I wrote no such program. I suggest you find the article and use the forum for the article.
|
|
|
|
|
I need to create MATLAB binary files from VB, any help will be appreciated?
Thanks
|
|
|
|
|
monochino wrote: I need to create MATLAB binary files from VB, any help will be appreciated?
Here is a document that details the MATLAB File Format[^]
|
|
|
|
|
Thanks.
I wonder if there is a simple way to use the MAT-file API, libmat.dll library
|
|
|
|
|
It speaks the "say.txt" file OK. But when I add the 'UnLoad Me' to stop it from running, it quits before it speaks. How do I wait until it is done speaking to UnLoad???
Private Sub Form_Load()<br />
Open "c:\webster\1\say.txt" For Input As 1<br />
txtText.Text = Input(LOF(1), 1)<br />
Close 1<br />
spkSpeak.AudioReset<br />
spkSpeak.Speak txtText.Text<br />
'Unload Me<br />
End Sub
Robert, still trying
|
|
|
|
|
Robert from Florida wrote: spkSpeak.AudioReset
spkSpeak.Speak txtText.Text
What type of object is spkSpeak? Have you checked out the other methods and properties available in this object? Maybe there is some property that says that the "speech" is still in progress...
|
|
|
|
|
DirectSS (MS Direct Text-to-Speach)
I'm very new to VB but I didn't see any property jump out that looks helpful. May be I'm missing something. Is there an easier way to get vb6 to speak a text file?
Robert, still trying
|
|
|
|
|
I'm sorry, but I've never used DirectSS. Can you maybe list out the properties/methods on that control? Something is bound to be there which says "in progress" or some such thing...
|
|
|
|
|
My simple code has three objects;
Form (frmSpeak)
DirectSS (spkSpeak)
TextBox (txtText)
the only thing I see in spkSpeak properties that I don't understand is under Behavior; [CausesValidatio]= true & Misc; [CallBackEnable]=1,[CurrentMode]=1,[Intialized]=0.
Robert, still trying
|
|
|
|