Can't open previously saved file

Posted by: dsimmon842 on 8 September 2017, 2:42 pm EST

  • Posted 8 September 2017, 2:42 pm EST



    I'm getting an exception when I try to open a previously saved
    file. First I saved the file with:



     



               
    fileStream = System.IO.File.Create(File1ToolStripMenuItem.ToolTipText,
    System.IO.FileMode.Create)



                FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FpSpread1, fileStream, False)



     



    Then when I try to open it back up using:



     



               
    fileStream = System.IO.File.Open(sFileAndPath, IO.FileMode.Open)



               
    FpSpread1.Open(fileStream)



     



    I get the following exception. 

     

                Could not load file or assembly 'FarPoint.Win.Spread' or one of its dependencies. The system cannot find the file specified.:Farpoint.Win.Spread

    I tried running the
    FarPoint installer again and selecting Repair, but it had no impact.  Up until now everything worked fine.  I am using VS2008 with Spread 5. 
    Suggestions?



     

























     



  • Replied 8 September 2017, 2:42 pm EST

    Hello,

    I would suggest you the following:

    1. Firstly try to remove all the FarPoint References from your project and then add them again.

    2. Secondly, please check out that version number in the licenses.licx file is same as the version of the references added to your project.

    But if the issue is still not resolved, I would request you to send us the xml file that is causing the issue, so that we can assist you further.

    Thanks,

    Manpreet Kaur.

  • Replied 8 September 2017, 2:42 pm EST

    I have sent the email twice more, once with the sample as an attachement and once with it as a link to an FTP site.
  • Replied 8 September 2017, 2:42 pm EST

    Hello,

    I apologize for the inconvenience, but I am still not able to find the email sent by you. Could you please tell me the subject of the email or the case number which you would have got in reply?

     

    Thanks,

     

  • Replied 8 September 2017, 2:42 pm EST

    The subject is "RE: Can't open previously saved file - forum post 98533" and I have sent it several times now to powersupport@grapecity.com
  • Replied 8 September 2017, 2:42 pm EST

    Hello,

    I was able to replicate the issue with the xml file that you sent, but when I tried to create a new xml file, by creating a SpreadSheet using designer and saving it to xml using the same piece of code as suggested by you. Later, I was able to reopen the xml file in Spread, without any issues. I am attaching the sample along with this response, kindly have a look. 

    I would request you to send us the code that you are using to create the SpreadSheet before saving it to xml, so that we can try saving and opening the xml file at our end.

    Thanks

    Manpreet Kaur.


    2011/08/cantopenprevfile.zip
  • Replied 8 September 2017, 2:42 pm EST

    I have sent a sample file to powersupport@grapecity.com

    Please let me know what you find.
  • Replied 8 September 2017, 2:42 pm EST

    Hello,

    We did not receive your email, please send us the email again and mention the forum post link.

     

    Thanks,

     

  • Replied 8 September 2017, 2:42 pm EST

    Hello,

    The issue faced by you seems to be a bug and we have reported it to the development team. The bug number for the same is #99922944. The bug will be fixed in the next maintenance release.

    Thanks,

    Manpreet Kaur.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels