Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about size_type and const_iterator of vector. Pin
George229-Apr-03 2:50
George229-Apr-03 2:50 
GeneralRe: Question about size_type and const_iterator of vector. Pin
markkuk29-Apr-03 3:18
markkuk29-Apr-03 3:18 
GeneralRe: Question about size_type and const_iterator of vector. Pin
George229-Apr-03 3:40
George229-Apr-03 3:40 
GeneralDisappearing folders in Visual Studio Pin
Poul Haahr Klemmensen28-Apr-03 23:38
Poul Haahr Klemmensen28-Apr-03 23:38 
GeneralRe: Disappearing folders in Visual Studio Pin
HJo29-Apr-03 0:17
HJo29-Apr-03 0:17 
GeneralRe: Disappearing folders in Visual Studio Pin
Poul Haahr Klemmensen29-Apr-03 2:11
Poul Haahr Klemmensen29-Apr-03 2:11 
GeneralRe: Disappearing folders in Visual Studio Pin
Bartosz Bien29-Apr-03 2:36
Bartosz Bien29-Apr-03 2:36 
Generalfield evaluation in RTF files Pin
luedi28-Apr-03 23:12
luedi28-Apr-03 23:12 
Hi,

I wanted to use the RTF/CRichEditCtrl as a kind of report system, where the reports are generated from templates of rtf files. Consider a simple application, that needs to fill out a predefined form with some application dependant values.

A first simple solution would be to search and replace Tags within the RTF file with the computed values.

A better solution would be to use the field tag from the RTF specification directly. For example the author field from a word document would look like:

{\field{\*\fldinst
{ AUTHOR \\* MERGEFORMAT }}{\fldrslt {Dirk}}}

where fldinst is the specific field instruction and fldrslt is the latest evaluated result.

Unhappily the CRichEditCtrl does not evaluate internal fields (like author) either, and I couldn't find any Interface in the ITextDocument specification to access the fields of the document.

Does anybody know how to reevaluate the contents of fields programmatically? Something like a callback function with the fied instruction (fldinst) and the return value is the evaluated result? Another possibility would be to reparse the complete document again and aply the evaluated values into the result field (fldrslt) and then feed the document back to the Ctrl.

Any ideas / code?

Thanks
Dirk
GeneralRename project Pin
macmac3828-Apr-03 21:08
macmac3828-Apr-03 21:08 
GeneralRe: Rename project Pin
Rage28-Apr-03 21:19
professionalRage28-Apr-03 21:19 
GeneralRe: Rename project Pin
John R. Shaw29-Apr-03 15:11
John R. Shaw29-Apr-03 15:11 
GeneralChanging m_pszHelpFilePath Pin
JensB28-Apr-03 20:31
JensB28-Apr-03 20:31 
GeneralRe: Changing m_pszHelpFilePath Pin
Toni7828-Apr-03 21:18
Toni7828-Apr-03 21:18 
GeneralRe: Changing m_pszHelpFilePath Pin
JensB28-Apr-03 21:28
JensB28-Apr-03 21:28 
GeneralRe: Changing m_pszHelpFilePath Pin
Toni7828-Apr-03 21:48
Toni7828-Apr-03 21:48 
GeneralRe: Changing m_pszHelpFilePath Pin
JensB28-Apr-03 22:53
JensB28-Apr-03 22:53 
GeneralRe: Changing m_pszHelpFilePath Pin
Toni7828-Apr-03 23:34
Toni7828-Apr-03 23:34 
GeneralRe: Changing m_pszHelpFilePath Pin
JensB29-Apr-03 0:07
JensB29-Apr-03 0:07 
GeneralRe: Changing m_pszHelpFilePath Pin
JensB29-Apr-03 2:31
JensB29-Apr-03 2:31 
GeneralRe: Changing m_pszHelpFilePath Pin
Toni7829-Apr-03 15:54
Toni7829-Apr-03 15:54 
GeneralRe: Changing m_pszHelpFilePath Pin
JensB30-Apr-03 1:33
JensB30-Apr-03 1:33 
GeneralSimple Question Pin
SatyaDY28-Apr-03 20:30
SatyaDY28-Apr-03 20:30 
GeneralRe: Simple Question Pin
jason9928-Apr-03 22:27
jason9928-Apr-03 22:27 
GeneralRe: Simple Question Pin
SatyaDY28-Apr-03 23:13
SatyaDY28-Apr-03 23:13 
GeneralRe: Simple Question Pin
Brian Shifrin28-Apr-03 23:40
Brian Shifrin28-Apr-03 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.