473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ACT some progress but no one has replied so far - help please.

I posted earlier but no replies.
I have made some progress and have managed to figure out (i think)
syntax for connecting to the act database from c# only problem is it
doesn't connect. When i ask for the error code it's -87 which is listed
in the SDK as not being able to open the database.

here's my code (it's very small) : can you see anything i'm doing
wrong?
all relevent info for Act including sdk pdf can be found at
strident.net/act
==============================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace actproject
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
ActOle.DATABASE database = new ActOle.DATABASEClass();

string mydbf = @"o:\database\database.dbf";

database.Open(mydbf);

MessageBox.Show(database.Error.ToString());
MessageBox.Show(database.LastError.ToString());


}

Mar 21 '06 #1
1 1131
Ive discovered also if i set the filename to something random, i get a
different error code. error code 50 which indicates a bad filename. So
error code -87 which i'm getting must mean it's seeing the database but
just can't actually open it.

Mar 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: aj | last post by:
Alan, you can achieve this by using XMLHttp Async functionality in a javascript file. Create an aspx page in which execute long running SQL query, then do an XMLhttp post to that page from a js...
4
by: Kenneth Keeley | last post by:
Hi, I have a page that uploads files to my server and I wish to display a "Please wait while uploading" page to the user while the file is uploading. I have been able to redirect the user once the...
3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
3
by: Tim::.. | last post by:
Can someone please, please tell me how I get a progress bar to work with a binary file upload! I have the following code that uploads files into an SQL Database using a Stored Procedure but I...
2
by: randy1200 | last post by:
In SQL Reporting Services, there's a circular green progress bar. Looks just like the regular progress bar in the toolbar, except that it's a circle. It's perfect for when a Win Form client needs...
6
by: Vikas Kumar | last post by:
Hi if I want to show a progress bar in my web application how can i do it Like this much % of task has been completed as its shown when installing some desktop application i want to do same in my...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
0
by: AccessDev | last post by:
Dear All vb.net programmers, I am new to vb.net. I would like to know how to make a progress bar show progress while saving binary data to the database. Please see below for the code I have so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.