Is there any option to file (excel,word,ppt,image,pdf file) in single viewer (syncfussion or any other)
KINS, Please check below demo and sample for your reference:
Sample:
https://github.com/syncfusion/blazor-showcase-document-explorer
Demo: https://blazor.syncfusion.com/showcase/documentexplorer/
Please let us know if you need any further assistance.
Thanks for reply..
This is an File Explorer
My question is how to view file in Viewer ??
For Example :-
In my Grid there are two column,FileDescriptions and FileName
When I double click on Grid row,the file should show in separate Viewer ..
awaiting for reply
KINS,
Please check below sample in which document listed in grid and when click on document it will open in Document editor:
https://github.com/SyncfusionExamples/multiple-users-edit-sequentially-in-word-document
Similarly, you can implement the functionality for Pdf, excel, ppt, image.
Pdf- Pdf viewer: https://blazor.syncfusion.com/documentation/pdfviewer/getting-started/server-side-application
excel- spreadsheet: In blazor we have excel viewer. convert the document to pdf and view in pdf viewer: https://help.syncfusion.com/file-formats/xlsio/excel-to-pdf-conversion
ppt- convert the document to pdf and view in pdf viewer: https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf
image: convert the document to pdf and view in pdf viewer: https://help.syncfusion.com/file-formats/pdf/working-with-images
Please let us know if you need any further assistance.
Thanks for reply...
Is it possible to view this file browser itself ???
Yes, you can view this file in your browser using the Word processor and PDF viewer web components.
can you have example of this ??
Kins, we are working on the sample and will update you once completed. In this sample, we planned to view all the file(docx, excel,ppt, image, pdf) in Pdf viewer. By converting all the files in Pdf format and open it in Pdf viewer.
We have prepared a Blazor sample to view all the file(docx, excel,ppt, image, pdf) in Pdf viewer. Check out the below GitHub sample.
sorry for late reply...
I have check this example but webclient is not supported in blazor web assembly..
can you share example in blazor web assembly
Pls help
Please find the Blazor WASM sample to view all the file (docx, excel,ppt, image, pdf) in Pdf viewer. Check out the below GitHub sample.
https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Common/Load%20PDF%2C%20Excel%2C%20PPT%20file%20types/WASM%20Side%20Sample/Load%20PDF%2C%20Excel%2C%20PPT%20file%20types
Hi Team,
Do we have any sample this with .net 9.
I am getting the error below while converting Excel to PDF in .NET 9. With .NET 8 its working fine.
Code:
<PackageReference Include="Syncfusion.Blazor.SfPdfViewer" Version="28.1.33" />
<PackageReference Include="Syncfusion.Blazor.WordProcessor" Version="28.1.33" />
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="28.1.33" />
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="28.1.33" />
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="28.1.33" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="28.1.33" />
<PackageReference Include="SkiaSharp.Views.Blazor" Version="3.116.1" />
Hi Psingh,
Upon reviewing , we suspect that the exception is caused by a version conflict with the SkiaSharp NuGet package. The current version of SkiaSharp included as a dependency in the XlsIORenderer NuGet package is 2.88.8. However, installing other NuGet packages in latest version (e.g., SkiaSharp.Views.Blazor) that depend on a higher version of SkiaSharp may result in the SkiaSharp package being updated, leading to the exception.
For your reference, we have attached a working sample that we tested. Please review it and if the issue still persists, please share the issue reproducing sample.
Regards,
Dhanush S
Hi Psingh,
Currently, we are preparing the sample for meeting your requirements and we will update detail by December 30, 2024.
Regards,
Mohammed Affan C
Hi Psingh,
Thank you for your patience and understanding.
We have created an Excel-to-PDF sample using the Microsoft file uploader, and we’ve attached the sample for your reference. Please let us know if this meets your requirements or if any further adjustments are needed.
Feel free to reach out if you have any additional questions or need assistance.
Regards,
Mohammed Affan C
Hi Mohammed Affan,
Thank you for the sample!!.
But as we discussed previously with .net 8 it already working fine.
We need Sample
using the Microsoft file uploader
in .net 9 + Blazor WASM
Hi Psingh,
We have created the same sample in .NET 9.0 and attached it for your reference.
Regards,
Dhanush S