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 - Kaibot

Pages: [1]
1
I'll tell you what, the whole Packages are a package and element thing can make it a bit tedious. Especially because I use an interface to handle all "elements".

I think the reason for this though was to make relationships between EA.Elements, EA.Packages, and the diagram a bit more intuitive.

I supposed editing is also a bit easier.

2
Personally I use a traversal method. Elements inside a package will have a packageID attribute that will be the parent package. That is the main thing I use to identify elements inside a certain package.

Let me know if you want more detail!

3
Automation Interface, Add-Ins and Tools / Re: Insert Text - RTF tags remain
« on: February 11, 2012, 04:02:49 am »
Quote
Howdy!

I am guessing that the notes field does not accept formatting for headings; if you look at the notes editor in EA there is no facility to add heading information.


Correct, that is the impetus behind wanting to use Linked Documents. However, all the tags still remain and no formatting is kept when I use the method above.

[highlight]Also, I realized the EA.File that I create in the code actually has no use. I don't remember why I had that there.[/highlight]

4
Automation Interface, Add-Ins and Tools / Re: Insert Text - RTF tags remain
« on: February 10, 2012, 06:30:07 am »
Has anyone at least run into this sort of problem?

5
Automation Interface, Add-Ins and Tools / Insert Text - RTF tags remain
« on: February 08, 2012, 09:15:54 am »
Howdy,

I am running into an issue when attempting to create a document and inserting text with RTF formatting. When setting that text in the Notes section of an element, the formatting is correct but because it is very limited (only bold, italics, underline) things like headings don't appear correctly. (Image below) When I attempt to insert that same text into the document created using the document generator, all the RTF tags remain (<b>, <i>, <u>, <li> and even hyperlink code).

Code:

Code: [Select]

EA.DocumentGenerator docGen = m_Repository.CreateDocumentGenerator();
docGen.NewDocument("");
String text = m_Repository.GetFieldFromFormat("HTML", text); //Take HTML text and convert to EA format
docGen.InsertText(text, "");

//Create file to later
EA.File tmpFile = (EA.File)reqElement.Files.AddNew(reqElement.Name, "RTF");
docGen.SaveDocument(reqElement.Name, EA.DocumentType.dtRTF);

element.Files.Refresh();
element.LoadLinkedDocument(reqElement.Name);

element.Notes = text; //Same text passed into document, appears correct in notes section.

//Update element

Notes section:


On an other note I had found a post a while back where these files were saved to the harddisk. It was not working out for me so I decided to see if I could save it as an EA.File. That seemed to work.

I hope I wasn't too ambiguous. Thanks in advance!

Pages: [1]