473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Form Templates

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
Aug 16 '05 #1
5 1411
Jay Villa wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Aug 16 '05 #2
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 [MVP]" <software_at_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Jay Villa wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Aug 16 '05 #3
Jay Villa wrote:
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 [MVP]" <software_at_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Jay Villa wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Aug 16 '05 #4
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

Aug 17 '05 #5
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
Aug 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Glyphman | last post by:
I have a bunch of pages with long forms, with lots of input types-text, radios, textareas, and the debugging process has become overwhelming. What I need to happen is to make sure that 1. Every...
21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
20
by: Griff | last post by:
Hi there I'm after some suggestions as to how one might best separate form and content in a normal run-of-the-mill web application. I'm sure whole bookshelves have been written on this, but I...
4
by: Martin | last post by:
I want to build a data entry form for creating and updating info on something. When I'm first creating an item all the fields need to be editable. There after some fields become readonly. Most...
3
by: Leo J. Hart IV | last post by:
OK, here's another question for the experts: I am building a multi-step (3 steps actually) form using a panel for each step and hiding/displaying the appropriate panel/panels depending on which...
3
by: Lars Netzel | last post by:
In VB6 I remember finding templates for forms like "About " and "Licence Agreemenet" and so on when creating a new Form. Where are they in .NET, not included? Can you download Froms like that,...
3
by: sajin | last post by:
Hi All, I developed a windows form application which shows initial form which contain many labels , datagridview and List View etc . I show the thumbnail view of the word templates in the list...
4
by: sadc1986 | last post by:
How does one introduce multiple worksheets in a excel using Xslt Transforms my code... Please suggest <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
1
by: McGeeky | last post by:
Hi. There are plenty of sites on the internet offering pre-canned templates for web sites, but what about pre-canned templates for web forms? Can anyone point me in the direction of a site/sites...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.