Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Feb 07, 2014 8:52 pm

Hello,
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...

phatty777
 
Posts: 2
Joined: Fri Feb 07, 2014 7:45 pm

Fri Feb 07, 2014 8:57 pm

well shiz balls, cant upload the .docx file as any other extension for somebody to figure out why its broken. I guess if e-iceblue wants my business they will contact me for the .docx file and fix their product to work.

phatty777
 
Posts: 2
Joined: Fri Feb 07, 2014 7:45 pm

Sat Feb 08, 2014 1:38 am

Hello,

Thanks for considering our products.
Sorry for the inconvenience. Please send your .docx file to support@e-iceblue.com.

Thank you.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron