View Full Version : Create then print a form?
Rossco
04-11-2006, 04:44 PM
Hi all,
I need to create some forms that users will access in the AMS project. I would like for the users to be able to fill out the form while open in AMS and then print it to the default printer setup on their system...
Can anyone suggest the best way to go about this?
Would/Can I actually create the form in AMS, or am I better to insert one I have created in Word or whatever?
The biggest thing wuld be to allow them to fill it out within the runing AMS app.. :)
Any help much appreciated
cheers and regards
Rossco
yosik
04-12-2006, 03:23 AM
You can use any "outside" program while AMS is running, so word or whatever is ok.
You could also use a webobject inside AMS, or a flash object (check components in Flash8).
Last, but not least, you could have a form built in AMS (with Input objects) and assign each input field to a variable (or even better an element in a table) and then insert these variables in a predefined text file or such (replace strings in that text with your variables).
Good luck
Yossi
Corey
04-12-2006, 03:31 AM
If you know Flash it might work to make templates in Flash then pass the form values to those. I've not done that so I'm not sure how tricky it is, but it's definitely do-able. The advantage there being that Flash is vector so it prints sharp.
You could do the same thing with HTML pages too, i.e. create print template pages and just pass the values at runtime... :yes
azmanar
04-12-2006, 03:54 AM
Hi all,
I need to create some forms that users will access in the AMS project. I would like for the users to be able to fill out the form while open in AMS and then print it to the default printer setup on their system...
Can anyone suggest the best way to go about this?
Would/Can I actually create the form in AMS, or am I better to insert one I have created in Word or whatever?
The biggest thing wuld be to allow them to fill it out within the runing AMS app.. :)
Any help much appreciated
cheers and regards
Rossco
Ross,
You can do this, definitely..all within AMS.
First, all forms fields entry will use INPUT objects in an AMS page.
Once user submitted, the fields ( variables with values ) are transfered to create an HTML page using Text.WriteFromString action.
The user is then transfered ( using Page.Jump ) to the page that contains a WebObject which loads the just created HTML page by calling WebLoad action.
The user can then print the HTML page from the AMS app.
Please check-out a good example of this in www.amsuser.com . The example shows how to create certificate from form input. Great stuff this.
In another example which I made, is using one HUGEEEEEEE ..... input object for making HTML pages. It is called myHTML.apz ... which uses the same concept I've explained.
NOTE: Result of Printing from HTML pages may differ from desktop to desktop and really depends on users' IE settings. ( ahemm !! AMS doesn't offer print function yet .... ).
Rossco
04-12-2006, 04:31 AM
Ross,
You can do this, definitely..all within AMS.
First, all forms fields entry will use INPUT objects in an AMS page.
Once user submitted, the fields ( variables with values ) are transfered to create an HTML page using Text.WriteFromString action.
The user is then transfered ( using Page.Jump ) to the page that contains a WebObject which loads the just created HTML page by calling WebLoad action.
The user can then print the HTML page from the AMS app.
Please check-out a good example of this in www.amsuser.com . The example shows how to create certificate from form input. Great stuff this.
In another example which I made, is using one HUGEEEEEEE ..... input object for making HTML pages. It is called myHTML.apz ... which uses the same concept I've explained.
NOTE: Result of Printing from HTML pages may differ from desktop to desktop and really depends on users' IE settings. ( ahemm !! AMS doesn't offer print function yet .... ).
Wow!,
you people are amazing!! thanks all for your ideas, Corey/YosiK, the one I can get my head around at the mo is azmanar's, so will check that option out for now. I do have Flash but can't use it yet, so that is a definate for the future :)
thanks a bunch for your help :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.