Unknown error when programmatically saving large visio documents

Discussion in 'Visio' started by Ilan Bar, Jul 8, 2015.

  1. Ilan Bar

    Ilan Bar

    Joined:
    Jul 8, 2015
    Messages:
    2
    Likes Received:
    0
    Hi,

    I wrote a c# console application that iterates over a folder of Visio 2010 files and makes some modifications on the shape's custom properties in each document. I noticed that for some of the files the save line fails:

    app.ActiveDocument.Save();

    this results with a vague exception "An exception occurred". when I quit the application using

    app.Quit()

    Each document that failed the saving is prompted with a save dialog box. needless to say, manually saving the files using the dialog box is not an option for me as I am iterating over thousand of files.
    If I manually reduce the document size by deleting some of the shapes - the save operations succeeds.

    Please advise,
    Ilan
     
    Ilan Bar, Jul 8, 2015
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. marco_aas
    Replies:
    0
    Views:
    4,083
    marco_aas
    Jul 17, 2011
  2. bherbert
    Replies:
    0
    Views:
    643
    bherbert
    Aug 16, 2011
  3. adeel
    Replies:
    0
    Views:
    1,311
    adeel
    Nov 4, 2011
  4. Jatin Sitapara

    Visio Save Options warning message

    Jatin Sitapara, Jan 3, 2012, in forum: Visio
    Replies:
    0
    Views:
    938
    Jatin Sitapara
    Jan 3, 2012
  5. webmas
    Replies:
    0
    Views:
    523
    webmas
    Jan 9, 2012
  6. Laxman
    Replies:
    0
    Views:
    1,130
    Laxman
    May 9, 2013
  7. Ilan Bar
    Replies:
    0
    Views:
    476
    Ilan Bar
    Aug 13, 2015
  8. Robert Hammond

    MS Visio Pro 2013 error deleting a page.

    Robert Hammond, Sep 14, 2015, in forum: Visio
    Replies:
    0
    Views:
    522
    Robert Hammond
    Sep 14, 2015
Loading...