This is a migrated thread and some comments may be shown as answers.

Send exported ClientExport image to RadImageEditor

2 Answers 122 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 19 May 2017, 06:51 PM

What I'm looking to accomplish is an application that allows a user to mark a document/Draw on it and have that document be stored on the server as a PDF or image file for archiving.

I'm using Visual Studio 2013 with .net 4.6.1 and it's a webforms project in ASP/C#.

The general flow is:

1. Webform served and filled out with relevant information (text boxes. drop downs, etc).

2. ** Completed webform saved as an image by user button press and either sent to directory on server or streamed to RadImageEditor.

3. Image loaded into RadImageEditor

4. User draws/writes on image.

5. RadImageEditor saves updated image in temp directory.

6. Updated image saved on server as PDF with RadPDFProcessing.

I have most of the steps working/complete, I'm only missing a crucial step #2. I cannot seem to figure out how to save a ClientExport image to be loaded into the RadImageEditor.

Even if I have to cache the file locally on a users pc, that is ok but I would prefer server if that's possible.  I just need to be able to perform this functionality without needing direct user intervention between steps 1 and 6.

I read through the documentation on saving a pdf here http://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/client-side-programming/events/pdfexporting  but was unable to get it to work. I kept getting iis tracelog xml files that would report failed requests with code 200.

Any help or pointing in the right direction would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 May 2017, 03:16 PM

Hi Erik,

The following article explains several ways to send the exported file to the server: http://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/how-to/save-exported-files.

In the callback function of the request, when the image is already available on the server, you can invoke a postback (full or partial, depending on your preferences) to point the ImageEditor to the said image.

The ImageLoading and ImageSaving events can then be used to load or save the image in a manner specificto your application logic.

Regards,

Marin Bratanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Erik
Top achievements
Rank 1
answered on 26 May 2017, 08:08 PM

This did the trick.  Thanks, not sure how I missed that in the documentation.

Tags
ClientExportManager
Asked by
Erik
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Erik
Top achievements
Rank 1
Share this question
or