one template with 3 print commands

Accounting and inventory IFRS/GAAP suite for SMB. General questions. See 1C:AccountingSuite details

#1
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Hi

I have in the document "Reminder" three Print Commands - 1.Mahnung (Print1) , 2.Mahnung (Print2) and 3.Mahnung (Print3).
I would like to use only one print template with a parameter that could be changed according to choice of PrintCommand.

For example:

If PrintCommand = Print1 Then

Template.Parameter.ReminderNumber = "Rechnung / 1.Mahnung"

and so on...

Where can I write something like that and what is the correct syntax?

Thanks

Edited: Lioudmila Nemtseva - Sep 23, 2012 11:20 PM
 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 29, 2011
Company: 1C Company

Create several print commands.

In the command modules of each print commands add additional parameters into procedure calls, "Print1" in the example.

In the manager module for the document receive the parameter and process it in the print form generation code.

 
#3
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Hi Konstantin!

Thank you for your help. It looks like:

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.