Cross Reference is not working as expected. Pls note this issue was reproduced by aspose team and we are waiting for fix as well.
Refer to attached sample document. when same topic is added as cross reference then only first cross reference works, the second one fails.
This is for cross reference issue. Please follow attachment for the same
once you convert attached sample word file-Line no. 4311, you can see reference link referring to Field only i.e CR_Bookmark_No_0024
Delete an image in a Project (section Delete an Image File )
once you convert attached sample word file-Line no 4385, referring to Filed as well as Hyperlink #_Delete_a_resource
Delete an image in a Project (section Delete an Image File)
@diemos Unfortunately, I cannot see any attachments in your post. Could you please attach the problematic document and provide code that will allow us to reproduce the problem? We will check the issue and provide you more information.
Cross Reference is not working as expected in one case. rest were fixed in previous drop you shared. but this one example is not working.
Refer to attached sample document. when same topic is added as cross reference then only first cross reference works, the second one fails.
This is for cross reference issue. Please follow attachment for the same
once you convert attached sample word file-Line no. 4311, you can see reference link referring to Field only i.e CR_Bookmark_No_0024
Delete an image in a Project (section [Delete an Image File](#cr_bookmark_no_00024) )
once you convert attached sample word file-Line no 4385, referring to Filed as well as Hyperlink #_Delete_a_resource
I have attached new document as previous one is see had broken links.
the issue is with the bookmark in word doc. whenever we have bookmark with same name as pose fix one cross reference bookmark but the next one with same name will not work.
see below example in attached doc: the bookmark called “Delete an Image File” appear twice but only one of them works and second doesn’t
work.
Cross references
Here is my first bookmark to “Code snippets.”
Here are my bookmarks to “Bulleted list” that is not working.
For more details, see “Heading 1”
And here is another bookmark to “Code snippets”
Delete an image in a Project (section “Delete an Image File”)
Cross references sub section
Here are my second bookmark:
Delete an image in a Project (section “Delete an Image File”)
@diemos Unfortunately, I cannot reproduce the problem on my side. I have tried converting your document to variouse formats and cross-references works as expected. For example see PDF document produced on my side. All cross-references works fine. out.pdf (520.8 KB)
Could you please provide code that will allow us to reproduce the problem? Also, please attach your problematic output document.
thank you for your response but it will be very helpful if you can share the .md file as even in our word file the cross ref works but post conversion (word- .net) it doesn’t give expected results. even in the pdf you shared we do see ref errors. pls share the converted .md file.
But you should note that MD format is very limited if compare to MS Word document formats and some features might not work in MD.
The errors shown in the provided PDF are expected. If you update fields in MS Word you will see the same errors. To avoid them you can disable updating fields in PDF save options:
Document doc = new Document(@"C:\Temp\in.docx");
PdfSaveOptions opt = new PdfSaveOptions();
opt.UpdateFields = false;
doc.Save(@"C:\Temp\out.pdf", opt);
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.