Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - patrice

Pages: [1]
1
General Board / problem with visual sourcesafe
« on: December 14, 2005, 05:16:52 am »
Hello,
I have correctly configured a scc control. I can check-in or checkout some packages . But , When I try to use the menu "Package Control"->"GetPackage"->"MyProject(SCC, "$/MyProject/Refrentiel UML,MXHAAAAA), the program returns the error " The SCC provider returned an error"   ???  :-[

2
Hello,
No, it's the content of a 'document artifact' (or linked document ) which is stored in an internal format compressed ( zip) and converted in base64 in the XML.

My code is not very clean but it was to try
:-/  :'(

3
Please help me !!!!    ???  :-[  ???

I can read the content ( by xml) but the content is in format '.zip' .  And after,  I don't know the format (.dat in the .zip) (internal, ? ole? )

if (_elem.Type=="Artifact")
{
EA.Project proj=(EA.Project)rep.GetProjectInterface();
string test=proj.GetElement(proj.GUIDtoXML(_elem.ElementGUID));
//test=proj.GetElementProperties(_elem.ElementGUID);
XmlDocument  xmlDoc = new XmlDocument();
xmlDoc.LoadXml(test);
XmlNodeList oNodes;

XmlNamespaceManager nsmgr = new XmlNamespaceManager(xmlDoc.NameTable);
nsmgr.AddNamespace("UML","omg.org/UML1.3");
XmlElement root = xmlDoc.DocumentElement;
oNodes=root.GetElementsByTagName("UML:TaggedValue");
//oNodes=root.SelectNodes("//@tag='isSpecification'",nsmgr);

String val="";
foreach (XmlNode oNode in oNodes)
{
try
{
if (oNode.Attributes["tag"].Value=="modeldocument")
{
val=oNode.InnerText;
}
}
catch
{
}

}

System.Windows.Forms.MessageBox.Show(val);

byte[] valbase10= System.Convert.FromBase64String(val);


System.Text.ASCIIEncoding ascii = new System.Text.ASCIIEncoding();
 
// Write out the decoded data.
System.IO.FileStream outFile;
try
{
outFile = new System.IO.FileStream("d:\\test.zip",
System.IO.FileMode.Create,
System.IO.FileAccess.Write);
outFile.Write(valbase10, 0, valbase10.Length);
outFile.Close();
}
catch
{
}


}

4
Hello,
I would like to read the rtf stream from a document artifact (model document) by programmation in c# to include this content in a winword document.
How it's possible ?
???

Pages: [1]