We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to view All file in single viewer

Is there any option to file (excel,word,ppt,image,pdf file) in single  viewer (syncfussion or any other) 


20 Replies

SM Suriya Murugan Syncfusion Team November 30, 2022 01:30 PM UTC

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.







KI KINS December 2, 2022 05:32 AM UTC

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



KI KINS December 8, 2022 04:02 AM UTC

awaiting for reply



SM Suriya Murugan Syncfusion Team December 9, 2022 08:44 AM UTC

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.






KI KINS December 9, 2022 11:56 AM UTC

Thanks for reply...

Is it possible to view this file browser itself ???



DS Dhanush Sekar Syncfusion Team December 12, 2022 03:01 PM UTC

Yes, you can view this file in your browser using the Word processor and PDF viewer web components.



KI KINS December 14, 2022 04:58 AM UTC

can you have example of this ??



SM Suriya Murugan Syncfusion Team December 28, 2022 03:56 AM UTC

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.



DS Dhanush Sekar Syncfusion Team January 12, 2023 12:35 PM UTC

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.

GitHub link: https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Common/Load%20PDF%2C%20Excel%2C%20PPT%20file%20types



KI KINS January 27, 2023 01:49 PM UTC

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



KI KINS February 9, 2023 04:29 AM UTC

Pls help 



GT Gunasekaran T Syncfusion Team February 14, 2023 04:35 PM UTC

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



PS Psingh December 18, 2024 12:06 PM UTC

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.


I think Error  (Invalid UTF-8 leading byte ... )  is misleading because if any error occur below same error is coming  on the top.

Image_7503_1734523486530





PS Psingh December 18, 2024 12:08 PM UTC

Code:


Image_5609_1734523640907

Packages version is 
<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" />






DS Dhanush Sekar Syncfusion Team December 20, 2024 01:03 PM UTC

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


Attachment: ConvertExceltoPDF_(1)_c4d4b5a8.zip


PS Psingh replied to Dhanush Sekar December 23, 2024 09:28 AM UTC

Hi Dhanush,

Thank you for the sample!!

This sample is in Blazor Server side but we need in Blazor WASM.
I changed the project to blazor WASM still I face some issues.
I used Microsoft fileuploader to upload the file. 
Would you please see that and fix.

Attachment: Excelpdf_333cb0f3.zip


MA Mohammed Affan Saqib Hussain Syncfusion Team December 27, 2024 02:01 PM UTC

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



MA Mohammed Affan Saqib Hussain Syncfusion Team December 30, 2024 01:03 PM UTC

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


Attachment: Convert_Excel_to_PDF_6c2e649d.zip


PS Psingh January 2, 2025 01:46 PM UTC

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


Image_8133_1735823461127






DS Dhanush Sekar Syncfusion Team January 6, 2025 10:14 AM UTC

Hi Psingh,


We have created the same sample in .NET 9.0 and attached it for your reference.


Regards,

Dhanush S


Attachment: Convert_Excel_to_PDF_cc5fd7b6.zip

Loader.
Up arrow icon