FileNotFound on LoadFromFile for .docx and .xlsx

General discussions about GdPicture.NET.
Post Reply
wedmondson
Posts: 10
Joined: Tue Aug 04, 2020 12:04 am

FileNotFound on LoadFromFile for .docx and .xlsx

Post by wedmondson » Tue Aug 04, 2020 12:27 am

I am making use of LoadFromFile to load multiple types of files. However, .docx and .xlsx files are returning a "FileNotFound" and .rtf files are returning a "GeneralError" but jpegs, gifs, tiffs, pdfs, and txt files are all fine.

I am using gdPicture 14.1.77 with .Net Core

Here is an example of the code I am using:

Code: Select all

using GdPicture;
...
using var converter = new GdPictureDocumentConverter();
var status = converter.LoadFromFile("foo.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX);
Does LoadFromFile not work with these file types or am I missing a setting?

User avatar
Fabio
Posts: 173
Joined: Thu Aug 27, 2020 9:57 am

Re: FileNotFound on LoadFromFile for .docx and .xlsx

Post by Fabio » Thu Aug 27, 2020 5:54 pm

Hello,

Sorry for the late reply.

Can you tried this code and tell me if it works?

using (GdPictureDocumentConverter oConverter = new GdPictureDocumentConverter())
{
GdPictureStatus status = oConverter.LoadFromFile("Files/foo.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX);
Console.WriteLine(status);
}

Regards,
Rabio de Rose
Solution Engineer

wedmondson
Posts: 10
Joined: Tue Aug 04, 2020 12:04 am

Re: FileNotFound on LoadFromFile for .docx and .xlsx

Post by wedmondson » Thu Sep 10, 2020 3:51 am

Sorry this was a mistake on my part. I did not have all the correct dlls loaded.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest