Manu_TR
Forum Replies Created
-
AuthorPosts
-
Manu_TR
ParticipantHello Eric,
Could you please share your thoughts on this?
Thanks,
ManuManu_TR
ParticipantHi 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 9 years ago by
Manu_TR.
Manu_TR
ParticipantEric,
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
ManuManu_TR
ParticipantEric,
Is there any workaround for the above scenario?
Thanks,
ManuManu_TR
ParticipantThanks 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
ManuManu_TR
ParticipantProblem 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.
Manu_TR
ParticipantEric,
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,
ManuManu_TR
ParticipantActually 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.
Manu_TR
ParticipantThanks Eric this was very helpful!
Manu_TR
ParticipantThanks you very much Eric,
Could you please help me to create that parser, it will be very helpful.
Thanks
ManuManu_TR
ParticipantNo Michel, its still pending.
Manu_TR
ParticipantThanks 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 9 years, 2 months ago by
Manu_TR.
Manu_TR
ParticipantAlso, 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,
ManuManu_TR
ParticipantNo 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,
ManuManu_TR
ParticipantThanks John that was very helpful. I need to ask one more thing do hyperlinks not have the fldchar begin, separate and attributes??
Thanks
Manu -
This reply was modified 9 years ago by
-
AuthorPosts