Search found 6 matches
- Wed Mar 20, 2019 5:01 am
- Forum: DocuVieware
- Topic: DocuVieware Lite unable to open text (.txt) files via stream
- Replies: 7
- Views: 6558
Re: DocuVieware Lite unable to open text (.txt) files via stream
One further question. When I use wrap the stream in a using statement, all file types load, except PDFs. Is this expected behaviour? e.g., this code works for all tested file types: var stream = this.GetDocumentStream(parameters.FilePath); docuViewareInstance.LoadFromStream(stream, true); However, t...
- Mon Mar 18, 2019 12:54 am
- Forum: DocuVieware
- Topic: DocuVieware Lite unable to open text (.txt) files via stream
- Replies: 7
- Views: 6558
Re: DocuVieware Lite unable to open text (.txt) files via stream
That worked.
Thank you for your help.
Thank you for your help.
- Mon Mar 11, 2019 11:09 pm
- Forum: DocuVieware
- Topic: DocuVieware Lite unable to open text (.txt) files via stream
- Replies: 7
- Views: 6558
Re: DocuVieware Lite unable to open text (.txt) files via stream
That is a simple private function which opens a read-only stream for the specified file: private Stream GetDocumentStream(string filePath) { return new FileStream(filePath, FileMode.Open, FileAccess.Read); } I can debug through the generation ok, and can see the stream being created. As mentioned, t...
- Fri Mar 08, 2019 3:22 am
- Forum: DocuVieware
- Topic: DocuVieware Lite unable to open text (.txt) files via stream
- Replies: 7
- Views: 6558
DocuVieware Lite unable to open text (.txt) files via stream
Hi, I'm trying to load file contents in DocuVieware Lite programatically using a REST service, using the following code: DocuVieware docuViewareInstance = new DocuVieware(sessionId); using (StringWriter controlOutput = new StringWriter()) { if (!string.IsNullOrWhiteSpace(filePath)) { var stream = th...
- Tue Mar 05, 2019 12:11 pm
- Forum: DocuVieware
- Topic: Using DocuVieware within .Net Core Web API service
- Replies: 3
- Views: 7315
Re: Using DocuVieware within .Net Core Web API service
Hi,
Many thanks for your reply.
However, the .Net Core tutorial listed is for .Net Core MVC, while my service is built using .Net Core Web API. Is there any way to achieve a similar result using Web API?
Thanks.
Many thanks for your reply.
However, the .Net Core tutorial listed is for .Net Core MVC, while my service is built using .Net Core Web API. Is there any way to achieve a similar result using Web API?
Thanks.
- Tue Mar 05, 2019 5:48 am
- Forum: DocuVieware
- Topic: Using DocuVieware within .Net Core Web API service
- Replies: 3
- Views: 7315
Using DocuVieware within .Net Core Web API service
Hi, I'd like to use DocuVieware in an Angular 6 application, backed by a .Net Core Web API service. I've tried the Angular 6/Rest sample app that comes with the installer, and it looks like it'd be a great fit for our application, but when I try to initialise the control within our .Net Core Web API...