Hi Everyone,
I am evaluating TextDynamic .NET ("TDN") for use in my commercial application. One of the features that excited me was the ability to save an HTML file with embedded (cid) images. I created a simple application, inserted formatted text and an image, saved it in HTML format. A file was created, but when I opened it in Internet Explorer, only the formatted text was there. I looked at the HTML, and there are no <img> tags… I changed the file format to “html-alwaysembed”, and the output file still did not have any images. The textual output is perfect, including active links. I’ve tried saving to an .rtf file, and only the text was saved… I have tried copying text and images from a webpage and pasting them into the control. The text is perfect, but no images in the .html file. I have tried typing text, inserting an image using your dialog box. The text is perfect, but no images in the .html file. I must be missing something in my code… I have a simple form with one WPDynamic.WPPDLLInt RichTextBox on it (Actually using the version for VS 2005, .NET2).
I am impressed with the features of this component and believe that it could save me a lot of time in my application as well as provide great functionality for my customers. It will be localized into English, French, German, Italian, Japanese, Russian and Spanish.
===============================================
HERE IS INITIALIZATION CODE:
// Load the PCC file (no password)
textControl2.SetLayout("buttons.pcc","");
// Initialize the editor
textControl2.SetEditorMode(
// as single editor (no splitscreen)
EditorMode.wpmodSingleEditor,
// with 16x16 toolbar (for 24x24 use wpmodexToolbarLG)
EditorXMode.wpmodexToolbar|
// and PDF, Spellchec and table support.
EditorXMode.wpmodexPDFExport|
EditorXMode.wpmodexSpellcheck|
EditorXMode.wpmodexTables,
// Select the GUI elements ruler, scrollbars and
// the lower left panel to change zooming and layout
EditorGUI.wpguiRuler|
EditorGUI.wpguiHorzScrollBar|
EditorGUI.wpguiVertScrollBar|
EditorGUI.wpguiPanelH1,
// We have no second editor
EditorGUI.wpguiDontSet);
HERE IS INSERT IMAGE CODE:
textControl2.Memo.AutoZoom = WPDynamic.AutoZoom.wpAutoZoomWidth;
textControl2.Memo.InsertGraphicDialog("", null, false, 0);
HERE IS HTML FILE SAVING CODE:
textControl2.Memo.SaveToFile("d:\\temp\\junk2.htm", false, "html-alwaysembed");
Alles anzeigen