Hi all

 

I am working on a project which I hope may be of interest to VFP developers
and which I intend to make available on Ed’s downloads section (if I can get
it working properly).  It is designed to:

 

Use the clipboard to copy code from an open code window

Fetch the contents of the clipboard as RTF

Convert the RTF to HTML and display it in a web browser control

 

It could be helpful in two ways:

1.      To experiment with different colours and styles, change them and see
the results immediately.  You can change several areas (Keywords etc) and
having made the changes (either one at a time or all at once) see their
effect on the code in the web browser (instead of that stupid little preview
that you get in Tools~Options~Editor) 
2.      The resulting HTML could be copied to the clipboard and pasted
straight into, for example, a web page or blog.

 

At the moment the RTF to HTML conversion itself makes use of a third party
control (TextDynamic).  Not only is this control complete overkill for what
is needed, but it is also eye-wateringly expensive (as in £ hundreds).

 

So I have put together (from various sources) a C#/.NET application to do
the conversion and it builds successfully.  However stepping through the
code I get to a point where there seems to be a problem (not an error, just
not doing what I tell it to do …).  The relevant part of the code is based
on
HtmlToXamlDemo.HtmlFromXamlConverter.WriteFlowDocument(System.Xml.XmlTextRea
der, System.Xml.XmlTextWriter) Example (csharpcodi.com)
<https://www.csharpcodi.com/csharp-examples/HtmlToXamlDemo.HtmlFromXamlConve
rter.WriteFlowDocument(System.Xml.XmlTextReader,%20System.Xml.XmlTextWriter)
/> 

 

If anybody would be prepared to work on this with me, or to help me move
forward, would they please contact me off-list.

 

Many thanks

 

Paul Newton

 

 

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/005a01d825a2$3971f950$ac55ebf0$@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to