![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||||||
| |||||||
|
|
One is tempted to ask what you are going to do with the 'rich text' once you are finished ..? |
|
You also need to know/realize that the 'output' appears to be HTML (as I would expect from a 'plain' browser), |
|
and there also seems to be a problem with formatting (try highlighting some text & changing style. |
|
Within Visage we generate "real" Rich Text via an ActiveX control - if this is what you need to do (RTF vs HTML), |
|
then you will probably need to follow a similar path I believe. That being the case, I'm assuming you are using some kind of terminal emulator, so the question then becomes "which one" |
|
(curiosity - doesn't impact the implementation, just the mecahnics of data transfer). |
|
I imagine someone like Kevin Powick, TonyG & others will be able to help you (probably even WITHOUT mv.NET :-) - if you get stuck, we certainly can, though depending on the solution you finally elect, you may not be able to post code back here |
#4
| |||
| |||
|
|
"Ross Ferris" <rossf (AT) stamina (DOT) com.au> wrote in message news:1137150234.285236.76890 (AT) g47g2000cwa (DOT) googlegroups.com One is tempted to ask what you are going to do with the 'rich text' once you are finished ..? It will be uploaded to a web-site. You also need to know/realize that the 'output' appears to be HTML (as I would expect from a 'plain' browser), I need HTML. I put it in the subject of the original post, but not the body. Mea culpa. and there also seems to be a problem with formatting (try highlighting some text & changing style. Changing the "Style" affects to whole paragraph. The only way to mix styles within a paragraph is to manually edit the font, size, etc., parameters. I am aware of this limitation and in this instance, it doesn't cause a problem. Within Visage we generate "real" Rich Text via an ActiveX control - if this is what you need to do (RTF vs HTML), I need HTML. A typical input from D3 into the Editor (or vice-versa) might look like this: p>This is bold. This is italics. This is underlined.</p p>Left Justified.</p p align="center">Centred</p p align="right">Right Justified</p p align="justify">Fully Justified.</p p></p hr / p></p p>(Horizontal Rule above)</p ol li>Numbered List 1</li li>Numbered List 2</li li>Numbered List 3</li></ol ul li>Bullet List 1</li li>Bullet List 2</li li>Bullet List 3</li></ul><blockquote dir="ltr" style="MARGIN-RIGHT: 0px" p>Indent</p><blockquote dir="ltr" style="MARGIN-RIGHT: 0px" p>Indent More</p><blockquote dir="ltr" style="MARGIN-RIGHT: 0px" p>Indent Even More</p></blockquote></blockquote></blockquote p>Not indented.</p p>This is black, <font color="#ff0000">red</font> and<font color="#6633ff" blue</font>. (Apologies if that's wrong. Colour blindness can be a pain sometimes.)</p p>Likewise with the backgrounds, black, <font style="BACKGROUND-COLOR: #ff0000">red</font> and <font style="BACKGROUND-COLOR: #3366ff">blue</font>.</p p>I think you get the idea?</p The editor will render it WYSIWYG. Users can edit it and then pass the changed details back to D3 which will upload them to a web-site. then you will probably need to follow a similar path I believe. That being the case, I'm assuming you are using some kind of terminal emulator, so the question then becomes "which one" Accuterm. (curiosity - doesn't impact the implementation, just the mecahnics of data transfer). Never underestimate the power of curiosity. :-) I imagine someone like Kevin Powick, TonyG & others will be able to help you (probably even WITHOUT mv.NET :-) - if you get stuck, we certainly can, though depending on the solution you finally elect, you may not be able to post code back here I'm officially "stuck" now. Transferring the data in and out of D3 / Windows via Accuterm isn't a problem. Manipulating the text using the editor isn't a problem. The two bits I'm missing are getting the code from D3/Accuterm into the editor, and then getting the modified code out of the editor back into D3/Accuterm. The editor comes with full source and I was hoping somebody could tweak that source for me to achieve the necessary. I don't think it is too hard, but then I hate it when clients tell me how easy my job should be, so I'll shut up now. Thanks for the help Ross. Regards Mike Wooding |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
I've had a look around and come across this utility http://www.kevinroth.com/rte/demo.htm |
#8
| ||||||||
| ||||||||
|
|
The "trick" is muich more than this! Mike's "editor" is as actually jScript in a web page manipulating the DOM, so tghe problem isn't just "how do I get the text out", but also populating the puppy in the first place. |
|
If you are using FC, |
|
life is a little easier - you could just have a SUBMIT (changes) on the page, and have a process pick things up - but I have a feeling the required solution needs to be cheaper than this? |
|
For a few hundred bucks |
|
he could also get a copy of Visage (heck, I'll even drop a copy of the editor on to a blank form for you), that could be iniated by Accuterm , but I have a feeling this would also be unacceptable. |
|
So, in terms of initially loadig the document, assuming all clients have access to a common network drive [letter], using OSFI (and samba if on NIX) you can simply write out a blank page INCLUDING any initial text, then access this by getting accuterm to do a (client DOS) execute by using something like : PRINT ESC :STX :">iexplore x:\"field(oconv("u50bb"," ",1):".htm": CR assuming X: is the common mapped drive letter - thisis the form that waits until the execute program finishes |
|
OK, so now have your "editor" displayed onscreen ... now go & google/find the jScript.chm from Microsoft & ook up the "File System Object" .... you see, IE allows your browser to write information to the file system - in this example, the "X" drive. |
|
Write the information out to a know name (you could substitute this into the page when you inially write it, and now your D3 program can read it .... oh, and if there is no file with the expeted name, it means that must have closed the browser down Hopefully this will give you enough to complete the project under your own steam |
#9
| ||||
| ||||
|
|
"Mike Wooding" wrote: I've had a look around and come across this utility http://www.kevinroth.com/rte/demo.htm Hi Mike, good to see you again. |
|
Not to take anything from this developer, but if you're going to use a web-based text editor, I'd suggest you use one that's extremely popular, supported on all popular browsers, and with a variety of other technologies: http://www.fckeditor.net/ It was Project of the Month on SourceForge last month - quite an honor among tens (hundreds) of thousands of projects. |
|
I haven't tested it, but I believe Ross provided the code which will cause AccuTerm to launch the browser to edit text using whatever editor you have in there. Seems to me like you have everything you need to accomplish this. |
|
Other options with AccuTerm include ObjectBridge and DOSSVC - this last one is a callable sub that does the write/execute/read pattern that many of us use - I just found this recently but haven't tried it yet. |
#10
| |||
| |||
|
|
I see a lot of basic code which stacks all the inputs and then performs an EXECUTE "FT". I've yet to see a routine that does this which includes error checking (user pressed "Abort", file exists and can't be overwritten, no such Windows path, etc.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |