Using free trial to test to see if my company would like to purchase. Running into huge issue with my testing. Using Spire.Doc 5.0
Error:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.
Here is code:
- Code: Select all
using System.Text;
using System.Threading.Tasks;
using Spire.Doc;
using Spire.Doc.Documents;
using Spire.Doc.Fields;
namespace PDFTest1
{
class Program
{
static void Main(string[] args)
{
//Create word document
//Load Document
Document document = new Document();
document.LoadFromFile(@"C:\TestingFiles\test6.docx");
//Convert Word to PDF
document.SaveToFile(@"C:\TestingFiles\test6.pdf", FileFormat.PDF);
}
}
}
I attached the .docx file as a .txt because uploading .docx file is not allowed. Seems odd...