|
I will be doing that today I just wanted to make sure that my understanding of the returned format was correct.
According to the receiving end an XML string <> Serialized Object correct?
Cleako
|
|
|
|
|
If you're sending an XML string then yes. I believe you could take an object and parse it to XML with something like a toXML type command. Haven't worked with it for awhile but I think serializable object should be able to break down to a string for sending. Make sense?
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
I didnt think of that, that might be the solution I use to better handle the XML without a lot of clunky code.
So other than pre-serialization if I were to return objResponse to the calling client can that be interpretted the same as a string or does it require a similar object on the other side to accept it? That is what I am really getting at here.
Thanks!
Cleako
|
|
|
|
|
Any of it will probably require SOME work on the other end to process it. You could also ask about this in the XML forum and see what you get there. That might help you more.
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
Why not use SOAP for requests and responces? If you are using .NET on both ends SOAP will serailize/deserialize the object for you automatically.
Mike Lasseter
|
|
|
|
|
I dont believe that the client calling this service is using .NET. I actually do let the WS do the work for me currently. I believe the client is not that picky and will work with what they get so I may be able to build a class structure that holds all of the values and see how that works when I return it.
Cleako
|
|
|
|
|
Hi all,
Can anyone please tell me what is the difference between Setup.exe file and Setup.msi file which is created for deploying the exe on target machine.
|
|
|
|
|
A .exe (Executable file), is used to execute any program and can be used to install software. A .msi file (Microsoft Scriptable Installer) file, is usually used to install Microsoft components.
.Exe files are the most commonly used.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I need to know how to add files to the Application Files List in publish section of a project in VB 2005 Express Edition, specifically a database file. The file is in the resource section but i need it to show up in the application files list.
i dont need to add it to the resource file i need to add it to the Application file list so that i can deem it a data file and the program will place the file in the correct place to be accessed by the program otherwise when i install the program it looks for the database and cannot find it, then errors out and shuts down the program. Unless anyone knows a different way to tell the installer to copy that database file to the correct path?
|
|
|
|
|
What installer are you using ? I can put any file I want, anywhere I want with every installer program I've ever used.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
windows installer 3.1 i guess, i mean i am using the options provided by the VB 2005 Express Edition
should i be using the a third party installer
-- modified at 15:21 Wednesday 10th January, 2007
|
|
|
|
|
You're going to have to modify your code so you can find the database if you're going to deploy your app using ClickOnce (or Publish) deployment. This is because your database file (.MDB) is going to end up in a different folder than your app's .EXE.
You'll have to modify the code so you can specify the FULLY QUALIFIED PATH to the .MDB file when you build your connection string to open the database. Details can be found here[^].
But, you just add your MDB file to your apps project to make it a part of the installation. ClickOnce will automatically put it in your apps Data folder when it's deployed on the client machines.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
what do you mean by add because it is in the resource file and the program runs off the database in the IDE.
|
|
|
|
|
Don't put it in the resource file. Use the .MDB file right off the drive. You can't use an Access database that's stored in resources anyway because you can't get write access to it. It MUST be accessed from a file on a Read/Write media.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
He's using ClickOnce Deployment. IMHO, a nasty little can of worms.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
I am using a Data Grid control to retrieve data from the data base using a data table object. I need to add new records into the Data Base through this Data Grid while it is running, what should I do after I create a new record on the data grid.
Dim ds As New DataSet
Dim empdtbl As DataTable
empdtbl = dbLogic.GetLookUp("select USER_INDEX, USER_NAME, USER_PASSWORD, EMAIL_ADDRESS FROM DB_USERS", "USERS").Tables(0).Copy
ds.Tables.Add(empdtbl)
Me.DataGrid1.DataSource = ds.Tables(0)
note: dbLogic.GetLookUp is a method that is in dblogic object wheich contains the connection properties.
|
|
|
|
|
Don't add items to the grid, add them to the database and repopulate. Or, add them to the database AND the grid, which is quicker, but disconnects what you see from the DB ( in that you don't verify that it's gone in )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am trying to Retrieve information from an access database to a drop down combo box. So if i need to do any updates I can do it from the database. The goal is whenever I select from the combo box I want to have that item placed in the mail.subject property so I can email my choice. My problem is I am getting a system.data.datarowview in my subject heading when I send the email instead of my selected item. Do anyone know how to fix this problem.
|
|
|
|
|
To get the value you can do this:
CType(combobox.SelectedValue, system.Data.DataRowView)(0).ToString
|
|
|
|
|
How do I receive a TYPE as a function's/sub's parameter in VB.Net?
I dont know how else to explain this, an example of a TYPE would be MyTableDataTable, this is a class which is dynamically created by the VS2005 EDI in myDataSet.Designer.vb.
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann
|
|
|
|
|
Just use the data type Type . This is a class that contains information about a data type.
You get an instance of the Type class for the MyTableDataTable class by calling the MyTableDataTable.GetType() method.
---
Year happy = new Year(2007);
|
|
|
|
|
i created a project to save the details of employee id and their detials in a database with an extra column in table of the database to save the photos of the employees. I have also assigned the column as photo on the table definition.
Now when i run the program and when i load the image in the picture box it give me error as " External Exception was unhandled" . generic error occurred in GDI+
please help me to locate this problem and get the solution
J.D.
|
|
|
|
|
Why don't you post a related code snippet?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I think, you should use ReadStream or WriteStream to read and write picture such as with the image field you use ReadStream to read image on the database after that you set the picturebox=ReadStream, OK!
good luck
|
|
|
|
|
Hi JD
please add the following in ur code for displaying
PictureBoxName.Image=image.Fromfile(myreader("Path"))
PictureBoxName.ClientSize= New Size(x,y)
Run it see The Changes
ok
job
|
|
|
|