Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 12th, 2004, 09:34 AM
Registered User
 
Join Date: Apr 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET Text / HTML editing problem

I have a problem I'm trying to solve with any of: .NET / ASP.NET / C#

Basically my user wants to be able to design a document on-line. The document looks like a business card. the document comprises 3 sections:
A - Top
B - Middle
C - Bottom

The idea is that for each section a user can set the following options:

 -Text (what they want to see)
 -Font Color
 -Area (can dimension each subsection so long as
 doesn't expand to more than section)
 -Justified TMB(Top / Middle/ Bottom)
 -Indent In (mm from JustifiedTMB selection)
 -Justified RCL(Right / Centre/ Left)
 -Indent In (mm from JustifiedRCL selection)

Once they've made all the selections they need to be
able to:
 - see a representation on screen (roughly what the thing would look like printed)
 - save the details (up to 6 versions)

If they finally make an order from one of the versions,
all the design details are used by the printer
(person) to create the document...

Just wondering what the best way of tackling this is?
  - use word via asp page to display the 3 sections?
  - use streamwriter/reader?
  - create an html document on the fly and save this document?

Any thoughts/ideas would be very welcome!!






Reply With Quote
  #2 (permalink)  
Old May 12th, 2004, 09:41 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You might want to check out this neat (kind of) WYSIWYG editor. If you tweak it a little, it might help you make part of what you want. I don't know much about ASP, using Word might be a better approach, if everyone has Word on their machine. If this isn't tweakable, you could try to make one on your own based on this (difficult, believe me) but I think you could get something out of this anyway.

http://www.interactivetools.com/products/htmlarea/

HTH,

Snib

<><
Reply With Quote
  #3 (permalink)  
Old May 12th, 2004, 02:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Well, you certainly can do this with HTML. An example of this is this forum. Basically, you would use some scripting to substitute one value for another.

For example when you click on one of the Smilies on the left [ :) ], it inserts a certain character string into the textbox. When it is read from the database, it replaces it with the corresponding image. :D.

That being said, there are certainly several applications for sale that do this for you and you would have to determine if it is worth your time to develop it or just pay for it.

J
Reply With Quote
  #4 (permalink)  
Old May 12th, 2004, 02:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Note that the first example deliberately included spaces to show you what happens if the character string isn't exact.

J
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html text Editor in c#.net kanwaldeep ASP.NET 1.0 and 1.1 Basics 3 November 23rd, 2007 05:16 AM
Selecting Text When Editing Datagrid elygp ASP.NET 1.0 and 1.1 Professional 1 May 29th, 2007 04:58 PM
Editing a Text File mh VB.NET 1 December 8th, 2005 02:37 AM
Editing text in a richtextbox ja8261 VB.NET 2002/2003 Basics 5 March 9th, 2005 04:10 PM
Text Editing/Modification in VB.Net/ASP.Net joevnvdvc VS.NET 2002/2003 0 July 29th, 2003 12:56 PM



All times are GMT -4. The time now is 04:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.