open a form from anohter form and export the opened form by coding

M

Mancha

Hi to all,
From one form I open another form by code (C#). I have to export the
view from the opened form.

The code is
XDocument xDocPrevious =
thisApplication.XDocuments.Open("c:\\openFile.xml", 1);
DocPrevious.View.Export(Environment.GetFolderPath("C:\\test.mht",
"MHT");

It seems an error when the opened form is exported. The error is that
the view isn't ready. What should I do?
 

Ask a Question

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. After that, you can post your question and our members will help you out.

Ask a Question

Top