Form Templates

J

Jay Villa

I am planning to implement some templates (around 30 templates). User will
select this template from the drop down and click print. When it prints it
should populate few fields from the form to template and print. Any
suggestions ?

Select Template _______________________ [PRINT]

-Jay
 
C

Curt_C [MVP]

Jay said:
I am planning to implement some templates (around 30 templates). User will
select this template from the drop down and click print. When it prints it
should populate few fields from the form to template and print. Any
suggestions ?

Select Template _______________________ [PRINT]

-Jay

Not sure I follow what the issue is.

Displaying the page?
Getting Data?
Calling window.print()?

Just Response.Redirect() to the selected page and populate it, then call
the clientside print() event.
 
J

Jay Villa

Suppose say I have a static template as shown below say as template1

Section1
-------------

Name ________________
DateOfBirth ----------------------
Address ----------------------------

In my asp form
Section2
----------
Please enter Name --------------
Please enter DOB --------------
Please enter address ------------
Select Template from the dropdown box ------------------

PRINT

Assuming that they select Template1 as shown section 1 and click on the
print button. The user information of Name, DOB, Address should be populated
to the template before printing.

I want to now how to achieve this ....

Hope I am making sense.



User will select Template from the drop down and select
Curt_C said:
Jay said:
I am planning to implement some templates (around 30 templates). User
will select this template from the drop down and click print. When it
prints it should populate few fields from the form to template and print.
Any suggestions ?

Select Template _______________________ [PRINT]

-Jay

Not sure I follow what the issue is.

Displaying the page?
Getting Data?
Calling window.print()?

Just Response.Redirect() to the selected page and populate it, then call
the clientside print() event.
 
C

Curt_C [MVP]

Jay said:
Suppose say I have a static template as shown below say as template1

Section1
-------------

Name ________________
DateOfBirth ----------------------
Address ----------------------------

In my asp form
Section2
----------
Please enter Name --------------
Please enter DOB --------------
Please enter address ------------
Select Template from the dropdown box ------------------

PRINT

Assuming that they select Template1 as shown section 1 and click on the
print button. The user information of Name, DOB, Address should be populated
to the template before printing.

I want to now how to achieve this ....

Hope I am making sense.



User will select Template from the drop down and select
Jay said:
I am planning to implement some templates (around 30 templates). User
will select this template from the drop down and click print. When it
prints it should populate few fields from the form to template and print.
Any suggestions ?

Select Template _______________________ [PRINT]

-Jay

Not sure I follow what the issue is.

Displaying the page?
Getting Data?
Calling window.print()?

Just Response.Redirect() to the selected page and populate it, then call
the clientside print() event.

Where is this Data though? Just on the form? If so you will have to have
the PRINT button to a post to a page that will read in the values, to
the appropriate selected template, and then call the window.print()

It's pretty straightforward ASP coding.
 
M

[MSFT]

Hello Jay,

I agree with Curt that redirection should be a proper solution. For
example, you one ASP page for each of template. When user submit the form,
you can save the data in session variant, and redirect to the template ASP
page acording user's choice. On the template page, display user data from
session and a button for printing current page.

Will this help?

Luke
 
A

AF

Assuming that they select Template1 as shown section 1 and click on the
print button. The user information of Name, DOB, Address should be populated
to the template before printing.

Just use similar names to your form entries in every template. You will then
be able to populate them simply by browsing all Request.Form submitted
data :

----------template1.asp--------------
<input type="textbox" name="fLastName" value="<%=Request.Form("fLastName")%>">

----------template2.asp--------------
<input type="textbox" name="fFirstName" value="<%=Request.Form("fFirstName")%>">
<input type="textbox" name="fLastName" value="<%=Request.Form("fLastName")%>">

and so on...

Antonio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,149
Messages
2,570,841
Members
47,388
Latest member
EarthaGilm

Latest Threads

Top