cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Dynamic Ppage Format

Former Member
0 Kudos

Hi All,

I need answers to the following questions.

1.I have a smartform for which the page format is Letter, while printing the form depending on some conditions I want to print the form on A4 paper.How can I dynamically change the Page Format, i have developed the layout such that when I take a printout, the default is letter when i change the spool attributes in sp01 to A4 it print correctly on A4, however i would like to change the page format dynamically and through my program, is there any way to change the spool attributes through the smartform driver program.

2. When pages in the smartform exceed 10 then instead of 10 of 10 it is displaying the page numbers as 10 of *.

Please help me with these issues.

Thanks & regards,

Vanita M.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

1.you can go to the basic settings and can change from letter format to DINA4,this might help.

2.follow the code &sfsy-page& of &sfsy-formpages&.

reward if useful.

chidambar.

Edited by: chidambar dixit on Dec 18, 2007 7:49 AM

Former Member
0 Kudos

Hi vanitha!

Click the page node . there, you'll be getting option to mention the page format and to choose portrait or landscape format. check once whether it may be useful.

Former Member
0 Kudos

hai guys,

dnt directly type the statement. simply drag and drop from "field list".

&sfsy-page& of &sfsy-formpages&

if u drag and drop from "field list" it will definitely work

naimesh_patel
Active Contributor
0 Kudos

1. We don't have any parameter from which you can control this from the Smartform driver program

2. To avoid this you can use like:

&sfsy-page& OF &sfsy-formpages(3ZC)&

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

This means that I will have to develop to separate smartforms? to handle the Page format issue?

When i use &sfsy-formpages(3ZC)& it prints

Page No: 1 of &sfsy-formpages(3ZC)& instead of the actual No.

Thanks & regards,

Vanita M.

naimesh_patel
Active Contributor
0 Kudos

For point 1, yes you need to create 2 Smartforms for handling different page sizes.

This code is working fine for me.

Page &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&

Regards,

Naimesh Patel

Former Member
0 Kudos

Are you writing this code in the General Attributes of a Text Element?

Also i am working on 4.6C.This code is not working for me.

it considers &SFSY-FORMPAGES(3ZC)& as a text.