473,835 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generic Forms on-the-fly?

I have an application where they want to create numerous forms (for example,
an expense reimbursement form, a book availability form, etc.). The idea is
someone would create a form for a user to fill out, and after it's filled
out, the user would click "submit" and the completed form (or at least the
user-supplied information) would be emailed to someone.

Of course, one approach is to just program each form in ASP.Net.

But I was wondering if there are any solutions to this problem which would
save time.

One idea I had was to create each form using MS Word, then store the word
document in the database. When someone goes to the web site and requests a
form, the word doc is pulled from the database, and displayed on the web
page. Then the user would fill in the fields, and click "Submit." The
filled-in Word document would then get emailed to the appropriate email
address.

(I have lots of experience with saving and retrieving Word documents from a
SQL Server database, so I feel comfortable with that aspect of it, but the
rest I'm not sure about...)

Is this feasible, or are there other generic solutions already out there?

Any thoughts or suggestions would be appreciated!

---Selden McCabe
Nov 19 '05 #1
5 4372
Well, I think that really depends on what tools you have at your disposal.
How do you want this form to be designed? What are the options for the form?
Will it only have text fields? Multiple choice? Checkboxes?

I mean, you could roll everything yourself, have the designer fill out a
page where they can add fields. Maybe for each field they get a choice if
it's a text field or a checkbox, and the label for the field. You store all
that in a database, then retrieve it and create appropriate controls
dynamically.

I think what you posted is kind of open ended, since all this can vary
greately depending on your specific requirements and restrictions.

"Selden McCabe" <se*****@msn.co m> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
I have an application where they want to create numerous forms (for
example, an expense reimbursement form, a book availability form, etc.).
The idea is someone would create a form for a user to fill out, and after
it's filled out, the user would click "submit" and the completed form (or
at least the user-supplied information) would be emailed to someone.

Of course, one approach is to just program each form in ASP.Net.

But I was wondering if there are any solutions to this problem which would
save time.

One idea I had was to create each form using MS Word, then store the word
document in the database. When someone goes to the web site and requests
a form, the word doc is pulled from the database, and displayed on the web
page. Then the user would fill in the fields, and click "Submit." The
filled-in Word document would then get emailed to the appropriate email
address.

(I have lots of experience with saving and retrieving Word documents from
a SQL Server database, so I feel comfortable with that aspect of it, but
the rest I'm not sure about...)

Is this feasible, or are there other generic solutions already out there?

Any thoughts or suggestions would be appreciated!

---Selden McCabe

Nov 19 '05 #2
/agree

There are lots of tools & tech that mimic the capabilities of traditional
paper forms; you'll need to narrow your requirements a bit before you make a
final decision.

Some possibilities;

+ Exchange Server
+ use Exchange Server forms. Easy to create. Easy to email.
+ Custom web app
+ ASP.NET
+ Individual custom forms, each with separate logic.
Stores and emails content
+ General forms concept, driven by an XML forms spec you
define
+ General forms concept, driven by a plain HTML forms spec
you define (i.e. the form is defined in HTML, but your .NET app loads it and
gives it intelligence)
+ General forms concept, driven by DOC files. Fields are
parsed and an email constructed on send
+ General forms concept, driven by XLS files.
+ Third-party
+ Adobe Acrobat forms
+ other
+ Other
+ Microsoft InfoPath

"Marina" <so*****@nospam .com> wrote in message
news:#Y******** ******@TK2MSFTN GP10.phx.gbl...
Well, I think that really depends on what tools you have at your disposal.
How do you want this form to be designed? What are the options for the form? Will it only have text fields? Multiple choice? Checkboxes?

I mean, you could roll everything yourself, have the designer fill out a
page where they can add fields. Maybe for each field they get a choice if
it's a text field or a checkbox, and the label for the field. You store all that in a database, then retrieve it and create appropriate controls
dynamically.

I think what you posted is kind of open ended, since all this can vary
greately depending on your specific requirements and restrictions.

"Selden McCabe" <se*****@msn.co m> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
I have an application where they want to create numerous forms (for
example, an expense reimbursement form, a book availability form, etc.).
The idea is someone would create a form for a user to fill out, and afterit's filled out, the user would click "submit" and the completed form (or
at least the user-supplied information) would be emailed to someone.

Of course, one approach is to just program each form in ASP.Net.

But I was wondering if there are any solutions to this problem which would save time.

One idea I had was to create each form using MS Word, then store the word document in the database. When someone goes to the web site and requests a form, the word doc is pulled from the database, and displayed on the web page. Then the user would fill in the fields, and click "Submit." The
filled-in Word document would then get emailed to the appropriate email
address.

(I have lots of experience with saving and retrieving Word documents from a SQL Server database, so I feel comfortable with that aspect of it, but
the rest I'm not sure about...)

Is this feasible, or are there other generic solutions already out there?
Any thoughts or suggestions would be appreciated!

---Selden McCabe


Nov 19 '05 #3
Look into InfoPath. it might do what you need.

"Selden McCabe" <se*****@msn.co m> wrote in message
news:#L******** ******@tk2msftn gp13.phx.gbl...
I have an application where they want to create numerous forms (for example, an expense reimbursement form, a book availability form, etc.). The idea is someone would create a form for a user to fill out, and after it's filled
out, the user would click "submit" and the completed form (or at least the
user-supplied information) would be emailed to someone.

Of course, one approach is to just program each form in ASP.Net.

But I was wondering if there are any solutions to this problem which would
save time.

One idea I had was to create each form using MS Word, then store the word
document in the database. When someone goes to the web site and requests a form, the word doc is pulled from the database, and displayed on the web
page. Then the user would fill in the fields, and click "Submit." The
filled-in Word document would then get emailed to the appropriate email
address.

(I have lots of experience with saving and retrieving Word documents from a SQL Server database, so I feel comfortable with that aspect of it, but the
rest I'm not sure about...)

Is this feasible, or are there other generic solutions already out there?

Any thoughts or suggestions would be appreciated!

---Selden McCabe

Nov 19 '05 #4
Fetching a Word document from a database is easy. However, using a Word form
in an HTML page is virtually impossible, and definitely impractical. As for
saving time, forget it.
Is this feasible, or are there other generic solutions already out there?
Generic solutions for what? Building WebForms? No. By now you could have
built 2 or 3 yourself!

Assuming that these forms are all handled in much the same way, you could
help yourself out by building a base business class that handles forms the
way you want to, and deriving inherited calsses from that for use with
individual forms.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Selden McCabe" <se*****@msn.co m> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...I have an application where they want to create numerous forms (for
example, an expense reimbursement form, a book availability form, etc.).
The idea is someone would create a form for a user to fill out, and after
it's filled out, the user would click "submit" and the completed form (or
at least the user-supplied information) would be emailed to someone.

Of course, one approach is to just program each form in ASP.Net.

But I was wondering if there are any solutions to this problem which would
save time.

One idea I had was to create each form using MS Word, then store the word
document in the database. When someone goes to the web site and requests
a form, the word doc is pulled from the database, and displayed on the web
page. Then the user would fill in the fields, and click "Submit." The
filled-in Word document would then get emailed to the appropriate email
address.

(I have lots of experience with saving and retrieving Word documents from
a SQL Server database, so I feel comfortable with that aspect of it, but
the rest I'm not sure about...)

Is this feasible, or are there other generic solutions already out there?

Any thoughts or suggestions would be appreciated!

---Selden McCabe

Nov 19 '05 #5
Hi Selden,
I have an application where they want to create numerous forms (for example,


I believe this article I found might help. It's called "Creating Dynamic
Data Entry User Interfaces".

http://msdn.microsoft.com/library/de.../dynamicui.asp

--
Sean.
Nov 19 '05 #6

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

Similar topics

3
1754
by: Mel | last post by:
i need to sort my table based on a "header click". is there a generic code out there that does that for me, or i have to write one for each and every table i come up with ? many thanks for your input
1
5635
by: John Hoffman | last post by:
Hello, I need some advice on what a generic error is and how to debug it... Any ideas? System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
3
12015
by: Anatoli Koutsevol | last post by:
Is there some way to determine size in bytes for a type parameter T in generic class cls<T>. For instance, I need some generic way to covert T array to an array of bytes and conversely, as in BitConverter.GetBytes. To create a buffer I'd like to have something like this T srcData; byte buffer = new byte;
2
1645
by: RFOG | last post by:
Hi all! I need a class that will be capable to enumerate some internal data, then my idea is to implement "for each" loop access. Doc says that I've to inherit form IEnumerable, but then compiler says "Error 1 error C2955: 'System::Collections::Generic::IEnumerable' : use of class generic requires generic argument list" I understand that my class have to be a generic class, but I don't need that.
1
1684
by: A. Burch | last post by:
What is wrong with this type of generic... I get this error.... Error 1 Inconsistent accessibility: parameter type 'System.Collections.Generic.Queue<TMQ.TheRec>' is less accessible than method 'TMQ.Prod.Prod(System.Collections.Generic.Queue<TMQ.TheRec>)' C:\MQueue\TMQ\Program.cs 21 16 TMQ
3
12128
by: Radenko Zec | last post by:
I have filled generic list with data on one form. When I close form generic list stay in memory waiting GC to collect. I want to implement code on form close to dispose generic list.
2
2647
by: confused1234 | last post by:
Hi i'm trying to pass a field of type System.Collections.Generic.ICollection< FeedImage> to a function. I dont't have a clue what this icollection is. but i tried some code System.Collections.Generic.ICollection< FeedImage> imagea ; FeedImage fee = new FeedImage ("http://www.image.com/image.jpg", "http://www.image.com");
5
8286
by: KDawg44 | last post by:
Hi, I would like to have a function that takes a generic object and takes some action on this. Something like, function AMethod(Object obj) { DoSomeStufftotheObject; } then be able to pass various object types in. Is there a way to do
3
1706
by: £ukasz | last post by:
I have project that uses managed c++ where I use c - library, this library contains some variables named generic, during compilation I get error: Error 1 error C2146: syntax error : missing ';' before identifier 'generic', Problem is with name generic, unfortunately I cannot change this name .How to solve this problem? What to do to make it work? -- Thanks, £ukasz
8
2540
by: Andrus | last post by:
Code below causes error in class definition line .....Isolator<T>' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'Myapp.Isolator<T>.GetEnumerator()' cannot implement 'System.Collections.IEnumerable.GetEnumerator()' because it does not have the matching return type of 'System.Collections.IEnumerator'. I tried to change method signature to
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9653
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10237
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5640
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5808
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4435
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.