Manu_TR

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • in reply to: LISTNUM fieldcode issue #4152

    Manu_TR
    Participant

    Hello Eric,

    Could you please share your thoughts on this?

    Thanks,
    Manu

    in reply to: Issue with listnum track changes(Revisions) #4149

    Manu_TR
    Participant

    Hi 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, 2 months ago by  Manu_TR.
    in reply to: Issue with listnum track changes(Revisions) #4148

    Manu_TR
    Participant

    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
    Manu

    in reply to: Issue with listnum track changes(Revisions) #4146

    Manu_TR
    Participant

    Eric,

    Is there any workaround for the above scenario?

    Thanks,
    Manu

    in reply to: Issue with listnum track changes(Revisions) #4145

    Manu_TR
    Participant

    Thanks 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
    Manu

    in reply to: Continuous Numbering issue #4114

    Manu_TR
    Participant

    Problem 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.

    in reply to: Continuous Numbering issue #4112

    Manu_TR
    Participant

    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,
    Manu

    in reply to: Continuous Numbering issue #4106

    Manu_TR
    Participant

    Actually 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.

    in reply to: Nested Fields #4102

    Manu_TR
    Participant

    Thanks Eric this was very helpful!

    in reply to: Hyperlink fieldcode #4076

    Manu_TR
    Participant

    Thanks you very much Eric,

    Could you please help me to create that parser, it will be very helpful.

    Thanks
    Manu

    in reply to: Reject Track changes #4058

    Manu_TR
    Participant

    No Michel, its still pending.

    in reply to: softpagebreaks W:LastRenderedPageBreak #4049

    Manu_TR
    Participant

    Thanks Eric,

    Could you please help me with this one more issue:

    Hyperlink fieldcode

    Or

    http://stackoverflow.com/questions/41374322/openxml-internal-hyperlink-fieldcode

    Regards
    Manu

    • This reply was modified 7 years, 4 months ago by  Manu_TR.
    in reply to: Extract FieldCodes #3746

    Manu_TR
    Participant

    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,
    Manu

    in reply to: Extract FieldCodes #3745

    Manu_TR
    Participant

    No 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,
    Manu

    in reply to: Extract FieldCodes #3742

    Manu_TR
    Participant

    Thanks John that was very helpful. I need to ask one more thing do hyperlinks not have the fldchar begin, separate and attributes??

    Thanks
    Manu

Viewing 15 posts - 1 through 15 (of 29 total)