D
dynamicpool
I am using the Lebans RTF2 ActiveX in my application to produce formatted
text on my report in a special text situation.
The formatting is being done in a class outside of nthe report and is called
into the report in the On Format event for the detail section.
This is working fine on my development computer, however, when I package it
I am not getting anything on screen in report preview inside the rtf
control.
I have included the required dll's as well as the OCX control. I have a
letter writer as well which is taking advantage of this control, and
although the functionality is present i.e.: I cna change fonts, make bold
etc, the control is not recalling saved letters that are preformatted
either.
The values are being fed to the letter writer form and the report in a
similar fashion. Typical code snippet is:
MsgBox strHolddps & " is what is being fed to the report"
Me.rtfRecommend.RTFtext = "{\rtf" & _
strHolddps & _
"}"
MsgBox "RTFRecommend is " & Me.rtfRecommend.RTFtext
The second message box is returning the expected values.
The format of the typical input is:
{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fswiss\fprq2\fcharset
0 System;}}
{\*\generator Riched20
5.40.11.2210;}\viewkind4\uc1\pard\tx1440\tx2880\tx4320\tx5760\tx7200\tx8640\
tx10080\tx11520\tx12960\tx14400\tx15840\tx17280\tx18720\tx20160\tx21600\tx23
040\tx24480\tx25920\tx27360\tx28800\tx30240\tx31680\tx33120\tx34560\tx36000\
tx37440\tx38880\tx40320\tx41760\tx43200\tx44640\tx46080\b\f0\fs20 We are
testing the function to see what happens\par
}
The letter writer saves directly to the table the output of RTF2, the class
writes the formatting as it goes.
I also tried running the RTF2 download from Lebans site on the target
machine to eliminate packaging as the issue. This seems to make no
difference.
text on my report in a special text situation.
The formatting is being done in a class outside of nthe report and is called
into the report in the On Format event for the detail section.
This is working fine on my development computer, however, when I package it
I am not getting anything on screen in report preview inside the rtf
control.
I have included the required dll's as well as the OCX control. I have a
letter writer as well which is taking advantage of this control, and
although the functionality is present i.e.: I cna change fonts, make bold
etc, the control is not recalling saved letters that are preformatted
either.
The values are being fed to the letter writer form and the report in a
similar fashion. Typical code snippet is:
MsgBox strHolddps & " is what is being fed to the report"
Me.rtfRecommend.RTFtext = "{\rtf" & _
strHolddps & _
"}"
MsgBox "RTFRecommend is " & Me.rtfRecommend.RTFtext
The second message box is returning the expected values.
The format of the typical input is:
{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fswiss\fprq2\fcharset
0 System;}}
{\*\generator Riched20
5.40.11.2210;}\viewkind4\uc1\pard\tx1440\tx2880\tx4320\tx5760\tx7200\tx8640\
tx10080\tx11520\tx12960\tx14400\tx15840\tx17280\tx18720\tx20160\tx21600\tx23
040\tx24480\tx25920\tx27360\tx28800\tx30240\tx31680\tx33120\tx34560\tx36000\
tx37440\tx38880\tx40320\tx41760\tx43200\tx44640\tx46080\b\f0\fs20 We are
testing the function to see what happens\par
}
The letter writer saves directly to the table the output of RTF2, the class
writes the formatting as it goes.
I also tried running the RTF2 download from Lebans site on the target
machine to eliminate packaging as the issue. This seems to make no
difference.