cancel
Showing results for 
Search instead for 
Did you mean: 

Printing two pages

Former Member
0 Kudos

Hi,

I am having a first page in my main window and few tables in that page

Now i created another page called second and it contains a main window and some different tables to be printed.

I also mentioned next page as second in first page general attributes.

My problem is.. in print preview i am not able to see my second page and the second page is not getting printed too.

Please help me on this issue.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184657
Active Contributor
0 Kudos

pls also define a command node after the last node in first page pointing it to the next page. that shud do the trick.

pk

Answers (3)

Answers (3)

Former Member
0 Kudos

hi sweta,

your problem is solved or what? before some days i faced the same , dont put anything in both pages's main window. in command node of first main window select Goto next page2. and in command node of 2nd main window also next page is page2 only.

hope now u'l get the data.

Former Member
0 Kudos

My table in second page is not seen.

Former Member
0 Kudos

have u created secondary window other than main window in second page and placed your table?

Former Member
0 Kudos

i have created a main window in second page.

Former Member
0 Kudos

Hi,

Try this logic...

In ur first page main window, after table which gets printed in the first page create a command node to break to second page, then create the table which u want to print in second page.

Now copy the main window of ur first page and paste it in the second page.

The second page main window is copies window of ur first window. The logic is after first page data, we are instructing to go to second page where the data flow continues in the same window but in the next page.

Hope this ll help u.

Regards,

Prabhu

Former Member
0 Kudos

If i am trying this logic what happens is the main window of the first page is flowing down the second page and content in second page is displayed twice i.e.,

My table in first page main window is in page 1 and flowing in page 2 and second page table is printed in both page 2 and page 3. This is what im viewing in print preview.

Now i dont want my second page content to repeat twice.

Former Member
0 Kudos

Hi,

I couldn't understand ur scenario exactly!!

Let us say u ve two pages 'XXX' and 'ZZZ'.

Anyway if content of the first table exceeds the window size in first page(XXX), it automatically flow to the second(ZZZ) page. Once all contents gets printed, u ve specified Goto second page(ZZZ). Now it freshly starts a new page(ZZZ) and prints all the contents of the second table consequently on the page-ZZZ. This is the functionality of the Smartform i.e if data overfows the main window size then it automatically flows to the next page main window.

Here u tel me wat u want to restrict.

u can also restrict the printable page in table condition tab additional event - 'Only on <page name>'

Regards,

Prabhu

Former Member
0 Kudos

Thanks for replying me Prabhu,

My issue is to print entirely two different pages which hold different contents.

I know to make the table flow from page xxx to zzz but the issue is if i design a page xxx and print small content and create a page zzz again with window type as main window and hold few tables say for example

first page xxx: Invoice of fly-high airlines

Terms and conditions:.

:

:

your flight timings: :

:

second page zzz:Table of your bookings:

table starts here.

Now when i excute this i am not able to see my zzz page in print preview. This is my issue. I am marking page xxx general attributes next page as zzz here .

Please tell me how to print this.

Former Member
0 Kudos

Swetha, if your First page has data

that is never more than one page

you dont need to have the Main Window in this page

Have Main only in the second page - 2.

no need of any command node either

Page 1 next page Page 2

Page 2 next page Page 2

only page 2 has Main Window

Former Member
0 Kudos

Thank you Nehal .

Former Member
0 Kudos

use protect and end protect.

Regards,

Venkat

Former Member
0 Kudos

if am doing so then it is giving me an error saying no new page allowed in the secondary window.

and if am creating a command node in main window of first page then it is giving dump.

former_member184657
Active Contributor
0 Kudos

thats coz u have to have to define all ur text elements in the main window.

make it a main window and it shud work fine.

pk

Former Member
0 Kudos

it still gives dump i tried it in main window....

former_member184657
Active Contributor
0 Kudos

make sure that the main window sizes in both pages are exactly the same.

pk

Former Member
0 Kudos

but the table what i am trying to print in second page is not appearing now

former_member184657
Active Contributor
0 Kudos

try this.

dump all ur tables and templates and text elements into just one page (in main window).

and wherever u need data to be displayed in a new page, give a page break by using the command node.

that wud work too.

pk