I have these two code snippets:
And I am calling them from another script C# script inside program.
r.AddDocumentSet(XXX + Document.Field("Document Section 1\\Account").Value, Document.Field("Document Section 1\\MSISDN").Value.ToString(), Document.Field("Document Section 1\\Account").Value.ToString(), Document.Field("Document Section 1\\Hard Copy Location").Value.ToString(), Document.Field("Document Section 1\\Verified by").Value.ToString(), Document.Field("Document Section 1\\Date of Verifica00tion").Value.ToString()); Processing.ReportMessage("Document Set created. "); }catch(System.Exception e){ Processing.ReportMessage("Document Set already exists. "); } r1.AddDocument(XXX +Document.Field("Document Section 1\\Account").Value+"/", "contract_"+ Document.Field("Document Section 1\\Account").Value + "(" + Document.Field("Document Section 1\\MSISDN").Value + ").pdf", bytes , Document.Field("Document Section 1\\MSISDN").Value.ToString() , Document.Field("Document Section 1\\Account").Value.ToString() , Document.Field("Document Section 1\\Hard Copy Location").Value.ToString() , Document.Field("Document Section 1\\Document Name").Value.ToString() , Document.Field("Document Section 1\\Verified by").Value.ToString() , Document.Field("Document Section 1\\Date of Verifica00tion").Value.ToString()); }
And I get these errors:
No overload for method 'AddDocumentSet' takes '8' arguments (line 6, pos 1) No overload for method 'AddDocument' takes '11' arguments (line 69, pos 1)
I am not a C# rockstar but I have tried everything. rebuilt dll, rewriten the snippets again, but nothing helped. I hope someone could show me the right code.