on 10-13-2008 2:39 PM
Hello,
I'm trying to do an extract directly from the repository with C#.NET 2005. I'm encontering a small problem ,I don't have the SQL Statement to do this operation.
I tried this
SELECT obj_m_documents.M_DOC_C_NAME
FROM obj_m_documents
WHERE obj_m_documents.M_DOC_N_TYPE=1
With this statement i have only names of my documents.
Is someone has the statement which allows to extract documents from the repository?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ultimately, what are you going to do with the documents after you've extracted it?
It's generally recommended to use the SDK (WICOM or WIBean) to retrieve documents if you're using custom code - are you able to use those to get the documents?
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
My request is in progress i have now this code which allows to import documents from repository and save them in a folder. This is the code:
string repositoryDoc;
int nbreDoc = lbNomCategories.SelectedIndices.Count;
int indexlbNomCat;
//Partie de code pour le référenciel
boAppli = Instancebo.Instance();
boAppli.ExchangeDomain = "Document";
boAppli.ExchangeMode = busobj.BoExchangeMode.boRepositoryMode;
for (int i = 0; i < nbreDoc; i++)
{
indexlbNomCat = lbNomCategories.SelectedIndex;
repositoryDoc = lbNomCategories.Text;
boAppli.Documents.Receive(repositoryDoc,repositoryDir);
lbNomCategories.SetSelected(indexlbNomCat, false);
}
But I enconter one problem with kind of documents I have this message: "No document found with this filename". But when i put these documents in an other Category i don't have this message. So I don't understand why.
someone ca help me?
I'm sorry but i can't invoke Receive without any arguments i tried this code
boAppli.Documents.Receive("", "");
but as document name is missing i have message document not found. that is normal. But anyway i don't have a dialog box appears. And this way
boAppli.Documents.Receive();
i have message Invalid Argument number.
Edited by: Afonso-Moreira Antonio on Oct 21, 2008 5:20 PM
Hello I found what was wrong but i don't know why. I explain:
When you imports document from repository; BO stores them in UserDocs, and the default way of it is in TOOLS/options in Desky. If I change this I enconter any problems. But if the directory when i store my document is different from whom is in TOOLS/options i need to make a copy of each document in the UserDocs before refresh.
I don't know why?
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.