Stephen Lebans RTF OCX control and text justification

P

Paradigm

I am not sure if it is possible to do this but I have been looking at the
RTF OCX control from Stephen Lebans site.
http://www.lebans.com/richtext.htm
It may solve a problem I have with printing RTF text that runs over 2 or
more pages.
Using the OCX, and the code provided by Andre Minhorst from Germany to break
the RTF text into seperate paragraphs, I have been able to print the multi
page RTF.
I am having one problem and that is that the justification of the text
(right, justified, etc) is not reflected in the report. The paragraphs of
text are always left aligned. I can display the alignments on the forms.
Am I missing something? Is it possible to justify the text on the report?

Alec
 
S

Stephen Lebans

Yes you can certainly justify text on a report as well as the form. The
issue is with your programmatic construction of the RTF strings. Have you
verified the RTF encoding is correct for the report? How about saving it to
disk and then displaying the RTF in Wordpad or Word to verify its encoding.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
A

alec

I was using the sample program supplied by Andre Minhorst from Germany
because I need to span more than one page. I changed it to suit my own form
and report but then tried it directly with his example. The text was entered
in a form using the same ocx control. But did not format on the report.
I did look at your examples and had a problem when the text exceeded a
certain length. I did try your sample programs and did not notice the
justification. I will have another look.
Thanks.
Alec
 
P

Paradigm

I am using the technique from Andre Minhorst to break the rtf text into
seperate paragraphs for printing.
Is there any size limit to the details area of a report when I do this.
I am finding that when the detail area exceeds about 2 pages the text does
not print at all.
Alec
 
S

Stephen Lebans

In the Access Help file, SPECIFICATIONS will state that the max height for
any single section is 22.75 inches. In relation to your issue, this means
you cannot programmatically size a control(or its parent section) to a value
greater than 22.75 inches.
There is no direct workaround.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top