View a Memory Stream
Can the PDF Viewer render a MemoryStream? I've seen a couple of threads in the Javascript area asking and debating but all of the links don't work to any of the samples. The documentation for the Vue component is pretty non- existent so should I try to get things working using the Javascript version if it is possible? What I'm hoping to do is to get a .NET Web API to take parameters and generate a PDF memorystream report. Is this possible?
SIGN IN To post a reply.
7 Replies
MS
Mohan Selvaraj
Syncfusion Team
May 17, 2019 07:24 AM UTC
Hi William,
Thank you for contacting Syncfusion support.
We can render the PDF document as MemoryStream in the PDF viewer control using web api controller. We have created the PDF viewer web API controller to load the PDF document as MemoryStream and Vue application. Please find the sample from the following link.
Web service: http://www.syncfusion.com/downloads/support/forum/144670/ze/ej2-pdfviewer-web-service1776506950
UG documentation:
Please run the web service application and provide the url to serviceUrl property before launching the Vue sample in the browser.
Kindly refer the below links for creating PDF viewer web service.
Core: https://www.syncfusion.com/kb/10346/how-to-create-pdf-viewer-web-service-application-in-asp-net-core
Please let us know the more details about your requirement if the provided solution does not meet your requirement.
Thanks,
Mohan S.
WM
William Morgenweck
May 17, 2019 11:11 AM UTC
That looks perfect. I'll try to convert the controller to VB.Net since my WEB API is VB. You don't happen to have a convert VB version available, do you?
MS
Mohan Selvaraj
Syncfusion Team
May 17, 2019 12:33 PM UTC
Hi William,
We can use web service application in VB platform and created the same for your reference. Please find the PDF viewer web service project in vb from the below link.
Note: Please run the web service application and set the web service application url to the serviceUrl property of PDF Viewer control (ex: serviceUrl: 'http://localhost:64220/api/PdfViewer' ).
Regards,
Mohan S
WM
William Morgenweck
August 5, 2021 06:37 PM UTC
Hi-- It's been awhile and I was wondering if you can make the following links active again. Thank you
Vue sample: http://www.syncfusion.com/downloads/support/forum/144670/ze/vue-quickstart1540046083
http://www.syncfusion.com/downloads/support/forum/144670/ze/PdfViewer_service_VB211772046
DM
Dhivyabharathi Mohan
Syncfusion Team
August 6, 2021 12:50 PM UTC
Hi William,
We have shared the sample for Vue and .Net Core web service. Please find the sample from the below links,
Web service: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewer_service_VB-1653454642
Kindly try this and revert us, if you have any concerns.
Regards,
Dhivya,
WM
William Morgenweck
August 8, 2021 01:41 PM UTC
Can I plug the MVC components into an existing 4.7.2 ASP.Net Framework without any trouble or should I stand up a completely separate .Net Core application to handle the PDF functions?
Thanks
B
DM
Dhivyabharathi Mohan
Syncfusion Team
August 9, 2021 11:41 AM UTC
Hi William,
Syncfusion PDF Viewer can use the Asp.Net Core and Asp.Net MVC as the server side application. However, you cannot use the Asp.Net Core application in the .Net MVC framework. You need to create a separate web service for Asp.Net Core platform. We have shared the KB and UG documentation links to create your own web service in the Asp.Net Core and Asp.Net MVC platforms.
KB for creating web service in Asp.Net Core: https://www.syncfusion.com/kb/11063/how-to-create-the-pdf-viewer-web-service-application-in-net-core-3-0-and-above-version
Web service sample in Asp.Net Core: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PDFViewerWebService-1690313330
UG documentation for creating web service in MVC platform: https://ej2.syncfusion.com/documentation/pdfviewer/how-to/create-pdfviewer-service/
Web service sample in Asp.Net MVC : https://www.syncfusion.com/downloads/support/directtrac/general/ze/MvcWebService-1191958021
Kindly try this and revert us, if you have any concerns.
Regards,
Dhivya.
SIGN IN To post a reply.
- 7 Replies
- 3 Participants
-
WM William Morgenweck
- May 16, 2019 03:10 PM UTC
- Aug 9, 2021 11:41 AM UTC