cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartform Dynamic Ppage Format

Former Member
0 Likes
544

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.

View Entire Topic
naimesh_patel
Active Contributor
0 Likes

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 Likes

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 Likes

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 Likes

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.