on 02-27-2008 3:57 AM
Hello Gurus,
I am stuck with a smart form problem, and need help from the
experts. I have couple of forms, which will be printed on pre-printed
paper. As a result, when the print request is sent to spool, the
background picture (which was used for development) is turned off. But
then, there is an additional requirement that, when the preview is
done, the user will have to see the background picture.
In this scenario, I have created a custom application, which will list
in an ALV grid, all the spool IDs, based on some criteria. And, it is
from this application that we trigger the actual printing , and also,
preview.
So, the requirement is : when the user selects a spool ID, and clicks
on the "preview" button in application, he/she should be able to see
the contents WITH background. However, when actual printing takes
place, the background picture should be suppressed, so that printing
can happen neat in the pre-printed paper.
I hope I am elaborate and detailed in the description of the problem,
and eagerly waiting for ideas and views from the gurus. I am verymuch
aware of work around for this problem, by creating another smart form,
with background..etc. But, is there any way to do this with just one
smartform.
Best Regards,
When calling your smartform using parameters found in control_paremters
you can control whether you are going to print or print preview, or
whatever.
So what you can do is to create a custom screen with your own bottons on
it to either print or print preview, then you will know before the
smartform is called whether the person is wanting to print or preview.
You would then be able to pass an indicator into the smartform telling
you whether this is s print or a preview, and can then make the
background picture conditional.
Using parameters found in output_options you can also prevent the user
from printing from the preview.
Let me know if you need further clarity on this.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think what you want is possible in the way you describe it.
If the spool requests have been created by the smartform before your ALV grid lists them the preview will only show what is in the spool, any functionality of the smartform cannot be used.
There is functionality in smartforms to show the background only at preview (you may be familiar with this) and this is set in the attributes of the background in the smartform. But this is only available in the smartform preview before the spool is generated. To use this you would have to change your custom application to generate the smartform, not read the existing spool requests.
Hope this is useful.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the control parameters you have a field PREVIEW. That field is set to X if you do a preview on the screen.
You can maybe used it as a condition for you background picture.
Regards
Åsa Thenstedt
Colada AB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.