Pocket PC Addict Forums



» BoxWave
BoxWave Corporation
» More Resources

Welcome to the Pocket PC Addict Forums!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, download files, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   Pocket PC Addict Forums > 3rd Party Promotions & Press Releases > Software Related Press Releases

view more in our Photo Gallery...

Software Related Press Releases Whether you’re passionate about Pocket PC software or just interested, step right in! Deal hunters welcome!

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-18-2007, 10:29 AM
geo2004's Avatar
Junior Member
Pre-Addict
 
Join Date: Dec 2007
Device: iPAQ
Posts: 1
Downloads: 0
Uploads: 0
Converting .sdf to .xls

Hello all.

I am attempting to either
a) Find an effective, efficient, easy to use way of converting mobile .sdf files to an Excel file, or

b) Find info on how to write a program using C# to do this.

I have already begun to write a program in C# to take an already synced mobile database, and convert it to an Excel file. I am using Visual Studio 2005 C#, along with the sql Server Compact Edition. I have included all of the .dll's necessary, however, when I attempt to open the connection, I am getting the following error:
System.BadImageFormatException: An attempt was made to laod a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at System.Data.SqlServerCe.NativeMethods.DllAddRef(). ..etc

Here is what my code looks like:
Code:
private void btnConvert_Click(object sender, EventArgs e)
        {
            try
            {

                string loc = "Info.sdf";
                if (File.Exists(loc))
                {
                    SqlCeConnection conn = new SqlCeConnection(loc);

                    conn.Open();

                    SqlCeCommand cmd = conn.CreateCommand();

                    cmd.CommandText = "SELECT * FROM Info";

                    SqlCeDataReader dr = cmd.ExecuteReader();
                }
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.ToString());
            }
        }
It won't even get passed creating the connection. Anyone know why it may be doing this? I have been stuck on this for some time now. Any help would be greatly appreciated!

Jeff
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Video converting recommendations? pniven Software Related Press Releases 1 01-30-2007 03:18 PM
Problem with video converting spoof Software Related Press Releases 1 01-29-2007 12:06 PM
Converting video files to be used for ppc thyeoh Software Related Press Releases 0 07-26-2006 11:25 PM
Converting Files To Xda andyk09 Software Related Press Releases 4 05-12-2006 06:43 PM
Converting a DVD to Pocket PC Using Fairuse Wizard LE Tim Pocket PC Tips 0 01-26-2006 04:04 PM


All times are GMT -5. The time now is 10:09 AM.




Content Relevant URLs by vBSEO 3.3.0
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2006 by Pocket PC Addict