Hi 1C developers.
I want to print a document using ActiveDocument template.
In the template, there are some data (ex Customer name, phone), and checkbox (ex Gender).
I'm having searched the forum and wiki but have not found any instruction.
Can you help me some instruction to do this:
| Code |
|---|
PrintDoc = Documents.MyDoc.GetTemplate("DocPrint");
ComObject = PrintDoc .Get();
WordDocument = ComObject.Application.Documents(1);
WordDocument.Activate();
//FillData(WordDocument); // fill the data (customer information), fill the checkbox...
// How show the document for printing? |
Thank you.