Example mvc Viewer 3.0

We would like to ask 2 questions:

1 We're seeing ViewDocument method call is made is done through the component GroupdocsViewer.all.js.

Can you give us an example that realize this call from a link?

2.We have an encrypted file system and a method that retrieves an array of bytes in file, transforming into a memorystream.Is it possible to show (render) this file without saving it to a temporary folder?

We have been looking at the examples and we have used that example is in Legacy Front End.

If we have a solution to this, we will very likely make the purchase of the product.

Thank you, best regards.

Hi dteruel,


Thank you for showing your interest in GroupDocs.Viewer.

I would like to write inline response against your questions.

1 We’re seeing ViewDocument method call is made is done through the component GroupdocsViewer.all.js.
Can you give us an example that realize this call from a link?
Infact GroupdocsViewer.all.js invokes the controller methods through ajax request and get the Json encoded/serialized data as response. The MVC framework is responsible to route the data between View and Controller. If you need to look GroupdocsViewer.all.js in simple Web Form/ aspx scenario then please have a look at our ASP.NET Web Form Front End

We have an encrypted file system and a method that retrieves an array of bytes in file, transforming into a memorystream.Is it possible to show (render) this file without saving it to a temporary folder?
Yes, surely it is possible. Currently GroupDocs.Viewer back-end/UI less API has the facility to render the stream without saving it into the storage as file. The code can be written as following.
List pages = imageHandler.GetPages(fileStream, “filename.ext”);

Note: GroupDocs.Viewer 3.x is a UI less API but also we have published open sourced Front-end sample projects.

Have a nice day!



The issues you have found earlier (filed as VIEWERNET-478) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by groupdocs.notifier.
(1)
Hi Muhhamad, thanks for the reply,

After seeing the examples, we have been looking at the examples and doing testing with version 2.19 and serves us perfectly.
Specifically the example shown in https://www.dropbox.com/s/gek4s79wjsig8qo/GroupDocs.Viewer.Mvc.Sample.zip?dl=0

We have created another sample project and we have not had any problems to run the display.

But when we wanted to integrate it with the example in our mvc project browser console gives error to call @Html.CreateViewerScriptLoadBlock (). LoadJquery(). LoadJqueryUi().

We see that all calls to a GetScript y GetCss give us error and cannot be resolved.

For example:
http://localhost:65480/document-viewer/GetScript?name=libs/jQuery-1.9.1.min.js

The global.asax file:

protected void Application_Start)
{

Viewer.InitRoutes ();
Viewer.SetRootStoragePath(Server.MapPath("~/App_Data/")); "
Viewer.EnableFileListRequestHandling (true);

AreaRegistration.RegisterAllAreas ();

FilterConfig.RegisterGlobalFilters (GlobalFilters.Filters);
RouteConfig.RegisterRoutes (RouteTable.Routes);
BundleConfig.RegisterBundles (BundleTable.Bundles);

}

We have also added the entries of


Do it may be something with the http://localhost path:65480/document-viewer?
Do we have to do something with Viewer.InitRoutes call ();?

Do not understand what is the problem since it is equal to the sample project.


We want to do a demo with our project we accept the purchase of the component.

Thank you
Best Regards,

Hi dteruel,


Thank you for the explanation.

In-fact you are writing about Viewer2.19 which is UI based version and totally different from Viewer3.0. In V3.0 the Front-end/Client side scripting has been disintegrated from the back end API and published as open sourced project. We are also about to publish the improved open sourced front-ends along with V3.2.0.

However, If you are interested in V2.19, then please create a new thread by specifying v2.19 along with your problems.

Thanks in advance