I am trying to import a page setup into the active drawing; the code works fine but I get an error when trying to save the file: Error writing/closing file. I've attached the code, can someone help me? I need to run the code in batch mode. I've tried different ways of saving but I get the same error.
I haven't tried anything of your code, but wondering about these things (I would avoid):
- alfred -
thanks for your quick answer; I had the extra transaction because I had different pagesetups, for model and paper and some layouts were not initialized so I had to make them active and then import the pagesetup. Anyway, I've updated and attached the sample code; it gives me the same error. My feeling is that I am missing something when using the source database.
Thanks for helping.
Ok, I've made a shorter version of the code, and I don't know why I cannot save the file. I've tried to also run the command in application context.
Thanks for any suggestion.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.