Hello,
I am getting the following error on a code shared below when trying to view pptx file in a viewer
Method not found: ‘Aspose.Slides.Export.INotesCommentsLayoutingOptions Aspose.Slides.Export.IRenderingOptions.get_NotesCommentsLayouting()’. (MissingMethodException)
public void CreatePageCache(int pageNumber)
{
ViewInfo viewInfo = this.GetViewInfo();
using (new CrossProcessLock(this.filePath))
{
int[] missingPages = new int[1];
missingPages[0] = pageNumber;
if (missingPages.Length > 0)
{
this.viewer.View(this.pngViewOptions, missingPages);
}
}
}
my Groupdocs.Viewer version is: 25.1.1
aspose.slides.net version is: 25.2
@Niteen_Jadhav
The error you are encountering, Method not found: 'Aspose.Slides.Export.INotesCommentsLayoutingOptions Aspose.Slides.Export.IRenderingOptions.get_NotesCommentsLayouting()'
, suggests that there is a version mismatch between the GroupDocs.Viewer and Aspose.Slides libraries you are using. Specifically, the method that your code is trying to access may not be available in the version of Aspose.Slides you have installed.
To resolve this issue, consider the following steps:
-
Check Compatibility: Ensure that the versions of GroupDocs.Viewer and Aspose.Slides you are using are compatible with each other. You might want to check the documentation or release notes for both libraries to find compatible versions.
-
Update Libraries: If you find that your versions are not compatible, consider updating either GroupDocs.Viewer or Aspose.Slides to a version that is known to work together. For instance, you could try updating GroupDocs.Viewer to a newer version if available.
-
Review Documentation: Look into the troubleshooting section of the GroupDocs documentation for any known issues related to the specific versions you are using. This may provide additional insights or solutions.
-
Code Review: Ensure that your code is correctly implemented according to the latest API specifications. Sometimes, method signatures or available properties can change between versions.
If you continue to experience issues after trying these steps, consider reaching out to the support community or forums for further assistance.
For more detailed troubleshooting steps, you can refer to the GroupDocs documentation on troubleshooting issues with the viewer here.
If you have any further questions or need additional help, feel free to ask!
Already checked but still getting the issue
@Niteen_Jadhav
You have to rollback the version of Aspose.Slides since it has changes in public API.
Which version of aspose.slides will work?
@Niteen_Jadhav
According to the release notes NotesCommentsLayouting
was removed in 24.12. So, I believe 24.11 should work.
But I am also using GroupDocs.Parser 25.1 which expects aspose.slides 24.12
Additionally, I changed all the DLLs and now after saving the file with this code →
[HttpPost]
[Route("api/GroupDocsApi/SavePptxFile")]
public SPResponse SavePptxFile(DocPro.DMS.BusinessEntities.Request.GroupDocs.GetDocumentInfoRequest request)
{
SPResponse sp = new SPResponse() { ReturnStatus = "-1" };
string editedHtmlContent = request.EditorData;
string inputFilePath = Path.Combine(request.StoragePath, request.GUID);
string guid = Guid.NewGuid().ToString();
string extension = Path.GetExtension(request.GUID);
string outputFilePath = Path.Combine(request.StoragePath, guid + "." + extension);
EditableDocument afterEdit = EditableDocument.FromMarkup($"<body>{editedHtmlContent}</body>", new List<IHtmlResource>());
GroupDocs.Editor.Options.PresentationSaveOptions saveOptions = new GroupDocs.Editor.Options.PresentationSaveOptions()
{
SlideNumber = request.PageNumber
};
using (Editor editor = new Editor(inputFilePath))
{
editor.Save(afterEdit, outputFilePath, saveOptions);
}
sp.ReturnStatus = "0";
sp.Ref1 = guid;
return sp;
}
If PageNumber=1 than on Page, than my page 1 is displaying like this and if I changed it to page 4 than same issue on page 4
Still waiting for the update
@Niteen_Jadhav
I’m sorry for the delayed response. May you please clarify which package versions you’re using at the moment so we could reproduce the issue at our side?
@Niteen_Jadhav
The one that causing the issue. You can also share a sample application so we could reproduce the issue faster and suggest a solution.
I am getting this error while saving the pptx file, already shared code with you
@Niteen_Jadhav
We’ll try reproducing the issue and update you when we have any new information.