We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

IndexOutOfRangeException

Thread ID:

Created:

Updated:

Platform:

Replies:

91097 Nov 4,2009 01:23 AM UTC May 25,2011 04:01 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DocIO
Jordan Soet
Asked On November 4, 2009 01:23 AM UTC

I'm just testing out the DocIO library and I wrote a simple little app to just open a document:

WordDocument doc1 = new WordDocument();

doc1.Open(filepath);

But when I run it I'm getting an IndexOutOfRangeException.

Here's the stack trace:

Syncfusion.Core.Licensing.Hex.decode(String data)
Syncfusion.Core.Licensing.UnlockKeyInfo.ExtractPrefixVersionInfo(String str)
Syncfusion.Core.Licensing.UnlockKeyInfo..ctor(String key, String filterVersion)
Syncfusion.Core.Licensing.UnlockKeyInfo..ctor(String key)
Syncfusion.Core.Licensing.FusionLicenseProvider.Validate(String str)
Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
Syncfusion.Core.Licensing.LicensedComponent..ctor(Type type)
Syncfusion.DocIO.DLS.WordDocument.CheckLicense()
Syncfusion.DocIO.DLS.WordDocument..ctor()
CherryHillInterfaceExtensions.Mapping.GetTextFromWordDocumentSync(String filepath) in D:\Projects\KCC Interface Projects\Customers\Colorado East\Cherry Hill\CherryHillInterfaceExtensions\Mapping.cs: line 109
CherryHillInterfaceExtensionsTest.MappingTests.TestReadSyncDoc() in D:\Projects\KCC Interface Projects\Customers\Colorado East\Cherry Hill\CherryHillInterfaceExtensionsTest\MappingTests.cs: line 167

I originally was having problems with licensing when I ran it. It would reach the "new WordDocument()" statement and a pop up would happen that said it would fix the project by adding the licensing file. After doing this I then get this exception when it reaches that line instead.

Any help would be appreciated.

Thanks,
Jordan

Jafrin [Syncfusion]
Replied On November 5, 2009 06:09 AM UTC

Hi Andreas,

Thank you for your patience.

The another special character used in DocIO is “\v”. “\v” insert a line break in the document. Could you please find the sample from the below link.

Sample:
http://files.syncfusion.com/support/DocIO.Web/Forum/90814/SpecialCharacter.zip

Please let us know if you have any questions.

Regards,
Jafrin J

Jafrin [Syncfusion]
Replied On November 5, 2009 06:45 AM UTC

Hi Jordan,

I apologies for the wrong update.It has been updated by mistake. Please ignore the previous update.

Sorry for the inconvenience.

Regards,
Jafrin J


Daniel Rütimann
Replied On May 25, 2011 04:01 PM UTC

Is there any solution to the original problem posted here? I have the same exception when trying to Save a WordDocument using DocIo.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;