|
In this case it is easy then. You don't need any credentials nor do you want to list the files on the website. You will need someway of figuring out what is the current version of the database in the web site. Say you could use a webservice to accomplish this. Then you need a known set of interval to check for the version. This could be done at the start of the application or after a known time period, may be every 24 hours if the application runs continuously. Finally you download the database to the local machine and do your magic installing/updating into the local db.
WebClient.DownloadFile should do the trick to download the database, here this should help.
Yusuf
|
|
|
|
|
Many thanks for your help. I can see where I am going now!
|
|
|
|
|
Not going to be really easy for you to do without having proper credentials.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
am searching on c# API to handle Microsoft word document file format,am trying to
access to header of microsoft word document file format 2003,i think i must use structured storagr API like (StgOpenStorage)that open an existing root storage object in the file system
but i need the source code , parameter of it ?????????
please help me
THANX
|
|
|
|
|
Are you still on with this? Look - why don't you save yourself time and buy this[^] product. You obviously aren't going to get the answer that you want because we aren't going to write your code for you - so you might as well buy a copy from somebody who's already done the work.
|
|
|
|
|
Pete O'Hanlon wrote: Are you still on with this?
Geeze, and I've given this person solutions in the past. How dense can they be?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
i didn't find who help me
i need now how can i now the parameter of StgOpenStorage
|
|
|
|
|
You have been advised to give Office Interop Library a look over the past two months. Have you even done that?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
my master want me to work with structured storage API to access to root of microsoft word file format
|
|
|
|
|
Miss_hacker wrote: my master
Your master? Are you a Genie? Are you perhaps chained up in a cellar with only the connection to Code Project available to you?
Seriously - you've wasted so much time on this, that it would have been cheaper for you to buy in a solution. You aren't going to be given code for free, so you are either going to have to bite the bullet and buy the code in, or you will have to code it for yourself.
|
|
|
|
|
Pete O'Hanlon wrote: Are you perhaps chained up in a cellar with only the connection to Code Project available to you?
I'd bet dollars to donuts that this is actually true.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
No offense, but your master ( boss, I assume ) is an idiot. But you have been at this for some time and PIA (aka Office Interop Library) is best way to get the job done.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
But his only advice on how to do it, is to ask here ? Brilliant.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: his only advice on how to do it, is to ask here ? Brilliant.
Yeah, what a brilliant "master" the OP has.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
am not Genie!!!!!!! am just student from iraq want to learning and to be
and no way from ole structured storage to hiding data in microsoft word document 2003 file format
that's my story
|
|
|
|
|
Hello miss hacker would u b my friend we share our c# programs.
I'm a good programmer as well as a hacker.
BY
SAM
|
|
|
|
|
hi
yes we can. can u help me ?becouse am realy late in my project
am now searching on the detalies of structure storage API like (StgsStorageFile) (StgOpenStorage)what the value of its parameters and how can i use it? i fnde just small things
THANks
Amani
|
|
|
|
|
I am wondering if we can paste an image while a webbrowser control is set on a designMode='On'. like copy image from word and paste directly on webbrower. I know we can insert an image through execommand(Paste,false,false). The problem is that when i paste an image directly, i don't see an image it just shows an empty box on the browser. I Couldn't find much on this topic.
Any input is highly appreciated.
|
|
|
|
|
I read excel file using following code. This code properly work when columnName variable is not numeric value. If columnName varibale is numeric for example columnName = "1"; so I get IndexOutOfRangeException. Under the while loop, in this line myList.Add(dr[columnName].ToString());
//columnName is string parameter
string connectionString = "....."
List<string> myList = new List<string>();
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb");
using (DbConnection connection = factory.CreateConnection())
{
connection.ConnectionString = connectionString;
using (DbCommand command = connection.CreateCommand())
{
string sql = "SELECT " + columnName + " FROM [Test$]";
command.CommandText = sql;
connection.Open();
using (DbDataReader dr = command.ExecuteReader())
{
while (dr.Read())
{
myList.Add(dr[columnName].ToString());
}
dr.Close();
}
}
}
What can I do.
Best Regards...
|
|
|
|
|
If the name consists of digits, the SQL query that you create would look like this: "SELECT 1 FROM [Test$] ". That would not get the data from the column "1", it would get the literal value 1.
Put brackets around the column name to specify that it's a name, not a value:
string sql = "SELECT [" + columnName + "] FROM [Test$]";
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yeappp, now its work. Thanks a lot...
|
|
|
|
|
Hi,
Iam using WMI and Win32_printjob to all the printer queue jobs...Iam using file watcher to run my service when a new file is copied from a specified location.
If I keep some thread.sleep then all the size and page no. iam to note them.
But without using thread.sleep Iam unable to read the file size and no. of page..but the file is copied from printer spooler to my specified location.
Now I want to my filewatcher service to invoke my service after a file is fully copied...How to accomplish this?
Kindly help me
|
|
|
|
|
Hi,
I developed a windows service which will copy some files in to the local system folder and then to another system. Right now my system and another system are connected in LAN and have shared along with Read/write access. It Is working for me.....
Requirement:-
but now I need to copy the files from one system to another system which are not connected in the LAN and not have shared permissions...
Assumption:-
On my search I came to know this can be done by FTP.
If I have to use FTP the what I have to do..?
1.Is that I need a FTP client application seperately?
2.Is that I need a FTP server application seperately?
3.Only one app can cater all these requirements?
All these I have to in the Windows service
Kindly help me
Thanks for all advise and help
|
|
|
|
|
If your application needs to send a file to another PC , that seems similar to a Client uploading to a FTP Server . So you need to make your application client and the need to have FTP Sever on the Other PC.
You can also create a WebServcie for the PC you need to put the file.
just pass the file in the service parameter.
Vikas Amin
UNITED STATES STEEL CORPORATION
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
hi vikas,
thanks for your help....
I have taken previously your help to solve my problem with printers and using WMI....
I need to guidence to do the FTP work
Iam very much thnakfull to you..
|
|
|
|