Manu_TR
Forum Replies Created
-
AuthorPosts
-
Hello Eric,
Could you please share your thoughts on this?
Thanks,
ManuHi Eric,
Looks like I need the deleted list number itself, Could you please help me to get it or is it even possible to get/calculate using openxml?
Thanks,
Manu- This reply was modified 7 years, 9 months ago by Manu_TR.
Eric,
Like I said in my previous post I need the value of deleted list item (b), Because without that the paragraph is being printed without any list number.
So how can I get or calculate the deleted list number?Thanks
ManuEric,
Is there any workaround for the above scenario?
Thanks,
ManuThanks for the reply Eric!
Actually we have 5 paragraphs with listnums (a) to (e). I turned on track changes and deleted listnum value (b) so that second paragraph has no listnum now. I thought I might get the value (b) in openxml since I turned on track changes but I am not able to get the deleted value (b) from openxml.
Thanks
ManuProblem is not with the word.
I am not seeing required element in numerationDefinitionPart which is used to restart the list nums. That’s why numeration is continuously inceremented in wmltohtmlconverter module.This is happening only to DOC file format. I can share you the document if you want it.
Eric,
I have one more observation here, We are not seeing any <w:lvlOverride w:ilvl=”0″> or <w:lvlRestart w:ilvl=”0″> elements in the NumberingDefinitionsPart of Openxml object created by DOC file. But we see <w:lvlOverride w:ilvl=”0″> element for docx file and it seems to be working fine. so only Doc file format has this numeration continuation issue.
Thanks,
ManuActually it’s a Doc file, we are getting its stream using WordOpenXml property on interop and create a openxml package using it.
below one is the actual code
var ListOfRuns = paragraph.Elements().ToList();
if (ListOfRuns != null && ListOfRuns.Any(a => a.Attributes().Any(e => e.Name.LocalName == “ListItemRun”)))
{
ListItem.Append(run.Value);
}Even after the section break the numbering are continuously incremented where it should not.
Thanks Eric this was very helpful!
Thanks you very much Eric,
Could you please help me to create that parser, it will be very helpful.
Thanks
ManuNo Michel, its still pending.
Thanks Eric,
Could you please help me with this one more issue:
Or
http://stackoverflow.com/questions/41374322/openxml-internal-hyperlink-fieldcode
Regards
Manu- This reply was modified 7 years, 10 months ago by Manu_TR.
Also, I tried below code to query fields in the docuement
static void Main(string[] args)
{
using (WordprocessingDocument doc =
WordprocessingDocument.Open(“Test.docx”, false))
{
foreach (var f in doc.MainDocumentPart.Fields())
Console.WriteLine(“Id: {0} InstrText: {1}”, f.Id, f.InstrText);
}
}but I am getting build error as –
DocumentFormat.OpenXml.Packaging.MainDocumentPart’ does not contain a definition for ‘Fields’ and no extension method ‘Fields’ accepting a first argument of type ‘DocumentFormat.OpenXml.Packaging.MainDocumentPart’ could be found (are you missing a using directive or an assembly reference?)please help!
Thanks,
ManuNo John I am using OPenxml only, I just to get the output similar to Apose.words using openxml.
Hyperlink that I showed in the above example doesnot have any “begin”, “separate” and “end” tags but still aspose/word interop generates a fieldcode (HYPERLINK \l “_Toc433904186″), Could you please explain me how?
THanks,
ManuThanks John that was very helpful. I need to ask one more thing do hyperlinks not have the fldchar begin, separate and attributes??
Thanks
Manu -
AuthorPosts