Skip to Content
avatar image
Former Member

Smartforms: Option of Printing Specific Pages Only

Dear forum-ers,

I have a requirement to print several agent statements in smartform based on the logic from the print program. Each of the page for the single form have a unique statement. Under different scenarios, the form must print out different page combinations as stated below:

Scenario 1: Page 1, Page 3

Scenario 2: Page 1, Page 2, Page 3

Scenario 3: Page 3, Page 4

Can the above be achieved using one single form? There is no option found in smartform to print only selected pages based on certain conditions. Please advice.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Apr 02, 2009 at 01:55 AM

    yes you can achieve this requirement.

    what you should is this.

    1. pass a variable from your print program. let say "status". this status variable will tell you what scenario will be displayed in your smartform. I believe you know now how to pass variable from your print program to smartforms.

    2. On your smartform, create different WINDOWS not PAGES. Since windows have a CONDITION TAB on it. On that condition tab, input the variable i ask you to pass.

    So for example, you defined:

    scenario1 as STATUS = 1

    scenario2 as STATUS = 2

    scenario3 as STATUS = 3

    in your condition tab of your WINDOW, input the variable you defined.

    hope this helps you.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 02, 2009 at 01:57 AM

    create a page say main page, now this page should print nothing only it shud have a command node that directs to different pages depending on ur scenarios,

    Scenario 1: main page(command node)-> Page 1(command node)-> Page 3

    Scenario 2: main page(command node)-> Page 1(command node)-> Page 2(command node)-> Page 3

    Scenario 3: main page(command node)-> Page 3(command node)-> Page 4

    кu03B1ятu03B9к

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Main page uses the main window while subsequent pages uses secondary window. When i set a command node on secondary window by setting the new page to 'next page', system prompts an error 'no new page allowed in secondary window'. How do i handle this problem whereby my requirement requires me to print out selective pages? Please advice.

  • avatar image
    Former Member
    Apr 02, 2009 at 01:58 AM

    Hi,

    Can the above be achieved using one single form?

    Yes you can do it in a single form.

    As per my understanding of your problem. Please follow the steps as below

    From the driver program pass the parameter to the smartform determine the scenario.

    in the smartform ...based on scenario dynamically trigger the page using Command node.

    Regards,

    Sreenivasa Sarma

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 02, 2009 at 08:28 AM

    kartik has the correct solution, only the third page as starting page can't be done with a command-node.

    You must fill the parameter control_parameters-startpage with the first page. do this in the initialization of the global definitions.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 07, 2009 at 09:02 AM

    Hi YTL,

    Change the window type as from secondary window to Main window then the error will be not thrown.

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 20, 2013 at 07:30 AM

    this explains for 2 pages with main windows scenarios:

    http://www.****************/Tutorials/Smartforms/Command/Index.htm

    Add comment
    10|10000 characters needed characters exceeded