Using RAPI library to transfer database from device to desktop

Discussion in 'Questions (Windows Mobile)' started by mozaharul, Apr 1, 2008.

  1. mozaharul

    mozaharul Active Member Licensed User

    Hi Erel,

    I use RAPI library to transfer database (sqlite) form device to desktop. I'm using ActiveSync 4.5. When I input data in the device, nothing (the same database? ) created in the Apppath on the desktop. What else should be done? The code for your perusal:

    Sub App_Start
    Form1.Show
    rapi.New1
    rapi.Connect
    ....
    ....
    End sub

    ....
    ....

    Sub rapi_connected
    If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
    rapi.CopyFileFromDevice1("\My documents\kamlapur.sl3",AppPath)
    End If
    End Sub

    I checked that the database "kamlapur.sl3" is being created in the dvice (My documents).


    Sorry, if I fall short to make sense to you with my poor knowledge.

    regards
     
  2. manu

    manu Active Member Licensed User

    Can be a problem writing has written "ture" instead of "true"


    If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
     
  3. mozaharul

    mozaharul Active Member Licensed User

    I'm ashamed.

    Thanks and regards
     
  4. mozaharul

    mozaharul Active Member Licensed User

    Hi manu,
    with the amendment, the code executed well on the desktop. but on the device gives errer message like:

    An error occurred on sub app_start.

    Line number:21

    rapi.new1
    Error descirption:NullReferenceException continue?


    What is the mistake have I done?


    regards
     
  5. agraham

    agraham Expert Licensed User

    From the RAPI Help Overview

    "The RAPI library (Remote API) is a desktop-only library which allows communication between the desktop and the device using ActiveSync."
     
Loading...