Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need help! smartforms problem .

Former Member
0 Likes
420

i write some code before calling the print FM . the code is used to work on if the use have to right to print the form when he press "PRNT" ucomm . but these is a question,if the use press "VIEW" ucomm, the press print in the view window, the code won't work any more . advice is indeed !

thanks&regards

thomas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
394

Say user can only view the form in print preview...ut he should not print the form from printpreview..to do this...

pass X to field TDNOPRINT(No printing from print preview) of structure SSFCOMPOP. And pass it to OUTPUT_OPTIONS parameter of smartform FM.

Regards,

Joy.

2 REPLIES 2
Read only

Former Member
0 Likes
394

Hi Thomas

The solution is very simple!

In your smartform, in the initialization, write the User authorization code(the one you've written in print prog).

whenever the condition is satisfied, just raise an exception. Define an exception in the the "Exception tab" in the global data.

Hope this solves your problem.

Regards

Ravish

Read only

Former Member
0 Likes
395

Say user can only view the form in print preview...ut he should not print the form from printpreview..to do this...

pass X to field TDNOPRINT(No printing from print preview) of structure SSFCOMPOP. And pass it to OUTPUT_OPTIONS parameter of smartform FM.

Regards,

Joy.