Click here to Skip to main content
15,903,540 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: sending data to the printer USing VB6.0 Pin
jkonduru23-Oct-07 5:52
jkonduru23-Oct-07 5:52 
GeneralRe: sending data to the printer USing VB6.0 Pin
Dave Kreskowiak23-Oct-07 6:05
mveDave Kreskowiak23-Oct-07 6:05 
QuestionChange to design view ms access's form from code Pin
haggenx23-Oct-07 4:49
haggenx23-Oct-07 4:49 
AnswerRe: Change to design view ms access's form from code Pin
Dave Kreskowiak23-Oct-07 5:03
mveDave Kreskowiak23-Oct-07 5:03 
GeneralRe: Change to design view ms access's form from code Pin
haggenx24-Oct-07 4:53
haggenx24-Oct-07 4:53 
QuestionSoftware Licensing VB.NET Pin
Cory Kimble23-Oct-07 3:27
Cory Kimble23-Oct-07 3:27 
AnswerRe: Software Licensing VB.NET Pin
Dave Kreskowiak23-Oct-07 4:53
mveDave Kreskowiak23-Oct-07 4:53 
QuestionRemoting [modified] Pin
RG_SA23-Oct-07 3:14
RG_SA23-Oct-07 3:14 
Hi all, Not to sure where I can Find the remoting thread so forgive me for posting under general.

I am currently trying to figure out how remoting works with datasets. Here are the steps taken

1) Created an interface wich will sit on the clients machine and reference the classes
2) Created the implements classes on the server app for the interface
3) Setup the server channels and communication
4) Created a small function that will test the connection
5) Added a database using the designer ... this created an xsd file dataset.

Right ... now everything works fine, the test runs smoothly and the client server talk to eachother. If I create a Dataset with a dataadaptor.fill and the server request the function it works fine and populates a datagrid on the other side.

The Working way.....

Public Function GetData() As System.Data.DataSet Implements IShared.IShared_Interface.GetData<br />
        Dim Conn As New OleDbConnection<br />
        Dim ConStr As String<br />
        ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;"<br />
        ConStr += ConnStr<br />
        ConStr += "Persist Security Info=True;"<br />
        Conn.ConnectionString = ConStr<br />
        Dim add As New OleDbDataAdapter("Select * From ClientInfo", Conn)<br />
        Dim Dt As New DataTable<br />
        add.Fill(Dt)<br />
        Dim Ds As New DataSet<br />
        Ds.Tables.Add(Dt)<br />
        Return Ds<br />
    End Function


I hoped that there was a better way to do this then started experimenting, hence step 5.

The designer sets up the database, datasets, dataadapters all nicely in the xsd file, but ... when the client request the dataset it has an incorrect assembly

Unable to find assembly 'AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

The Not Working way ....
Public Function GetDataAnotherWay() As System.Data.DataSet Implements IRMSShared.IRMSShared_Interface.GetDataAnotherWay<br />
        Dim Ds As New DataBaseDataSet<br />
        Return Ds<br />
    End Function


Please could someone help me out here, I would think that the second example would be much easier but it is not. I have look at the seialization techniques, but seems like a very long way round ... might as well just code all the datasets and dataadaptors.

If any one knows a link to examples of how to use a Typed Dataset in remoting through an interface please let me know. I have been battling at this for some time. I will even email the full source code. It is written with vs 2008 beta 2, but I am using the framwork 2.

Thanks


Go Springboks


-- modified at 14:33 Tuesday 23rd October, 2007
AnswerRe: Remoting Pin
Dave Kreskowiak23-Oct-07 4:51
mveDave Kreskowiak23-Oct-07 4:51 
GeneralRe: Remoting Pin
RG_SA23-Oct-07 8:46
RG_SA23-Oct-07 8:46 
GeneralRe: Remoting [modified] Pin
Dave Kreskowiak23-Oct-07 9:21
mveDave Kreskowiak23-Oct-07 9:21 
Questionsharing info with other programs Pin
cj433123-Oct-07 3:03
cj433123-Oct-07 3:03 
AnswerRe: sharing info with other programs Pin
Dave Kreskowiak23-Oct-07 4:40
mveDave Kreskowiak23-Oct-07 4:40 
GeneralRe: sharing info with other programs Pin
cj433123-Oct-07 10:24
cj433123-Oct-07 10:24 
GeneralRe: sharing info with other programs Pin
Dave Kreskowiak23-Oct-07 10:30
mveDave Kreskowiak23-Oct-07 10:30 
GeneralRe: sharing info with other programs Pin
cj433123-Oct-07 10:43
cj433123-Oct-07 10:43 
Questionproblem in Node.InsertAfter method() Pin
koolprasad200323-Oct-07 2:27
professionalkoolprasad200323-Oct-07 2:27 
AnswerRe: problem in Node.InsertAfter method() Pin
pmarfleet23-Oct-07 3:32
pmarfleet23-Oct-07 3:32 
GeneralRe: problem in Node.InsertAfter method() Pin
koolprasad200323-Oct-07 17:33
professionalkoolprasad200323-Oct-07 17:33 
GeneralRe: problem in Node.InsertAfter method() Pin
pmarfleet23-Oct-07 21:26
pmarfleet23-Oct-07 21:26 
QuestionVB.Net on Mac OS X Pin
ryan11723-Oct-07 1:55
ryan11723-Oct-07 1:55 
AnswerRe: VB.Net on Mac OS X Pin
Guffa23-Oct-07 2:54
Guffa23-Oct-07 2:54 
GeneralRe: VB.Net on Mac OS X Pin
ryan11726-Oct-07 0:23
ryan11726-Oct-07 0:23 
Questionhow to disable date in calender? Pin
sathyan_829423-Oct-07 1:29
sathyan_829423-Oct-07 1:29 
AnswerRe: how to disable date in calender? Pin
Christian Graus23-Oct-07 1:46
protectorChristian Graus23-Oct-07 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.