Print a second document from the current document. (C# Managed cod

R

RichardAtRVC

2 Infopath Documents

Document A has a print function.

When you click "Print" it actually prints out a Document B and then closes
document B.

I can get this to partially work.
When include the line to close Document B the document just doesn't print.

Does anyone know a way around this?

Here's the code.

thisApplication.XDocuments.NewFromSolution("c:\\temp\\manifest.xsf");
thisApplication.XDocuments[1].PrintOut();
thisApplication.XDocuments.Close(1);
 

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