473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Steve Leban's RTF2 control & printing

I downloaded Steve Leban's RTF2 control and it shows me the report as
wanted.

The Problem is, if i want to print it, it comes a PopUp where it says
"properties write protected" (german: "Eigenschaft ist schreibgeschützt")
and then i have to complete kill access to continue, unfortunately the
report wasnt printed.

Thats the code for the "format" of the RTFControl2 of the report which
is -IMHO- producing the malfunction. Is it maybe the name "RTFControl2"?

Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As Integer)
Dim Height As Integer
Me.RTFControl2.Object.RTFtext = ""
Me.RTFControl2.Object.RTFtext = Me.RTFParagraph
Me.RTFControl2.Requery
Height = Me.RTFControl2.Object.RTFheight
If Height 0 Then
If Height < 32000 Then
Me.RTFControl2.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFControl2.Height + Me.RTFControl2.Top

If Me.RTFControl2.Object.RTFheight 0 Then
If Me.RTFControl2.Object.RTFheight < 32000 Then
Me.RTFControl2.Height = Me.RTFControl2.Object.RTFheight
End If
End If

Me.RTFControl2.RTFtext = Me.RTFControl2.RTFtext
End Sub

Whats wrong with that :) or with me ;) ...

Please tell me if you need further information! Thanks!
Mar 21 '07 #1
2 3111
WHy did you change the sample code found in the MDB you downloaded? You
don't call the Access parent control's Requery method.

Why don't you simply bind the RTF2 control to your field/control named
Me.RTFParagraph instead of setting the RTFText property programmatically at
run time?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Pascal Hagedorn" <da**************@web.dewrote in message
news:et**********@news.uni-kl.de...
>I downloaded Steve Leban's RTF2 control and it shows me the report as
wanted.

The Problem is, if i want to print it, it comes a PopUp where it says
"properties write protected" (german: "Eigenschaft ist schreibgeschützt")
and then i have to complete kill access to continue, unfortunately the
report wasnt printed.

Thats the code for the "format" of the RTFControl2 of the report which
is -IMHO- producing the malfunction. Is it maybe the name "RTFControl2"?

Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As
Integer)
Dim Height As Integer
Me.RTFControl2.Object.RTFtext = ""
Me.RTFControl2.Object.RTFtext = Me.RTFParagraph
Me.RTFControl2.Requery
Height = Me.RTFControl2.Object.RTFheight
If Height 0 Then
If Height < 32000 Then
Me.RTFControl2.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFControl2.Height +
Me.RTFControl2.Top

If Me.RTFControl2.Object.RTFheight 0 Then
If Me.RTFControl2.Object.RTFheight < 32000 Then
Me.RTFControl2.Height = Me.RTFControl2.Object.RTFheight
End If
End If

Me.RTFControl2.RTFtext = Me.RTFControl2.RTFtext
End Sub

Whats wrong with that :) or with me ;) ...

Please tell me if you need further information! Thanks!

Mar 21 '07 #2
Thanks it worked out :) Sometimes you just need an objective observer %-)

"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdot...@linvalid.com>
schrieb im Newsbeitrag
news:os********************@ursa-nb00s0.nbnet.nb.ca...
WHy did you change the sample code found in the MDB you downloaded? You
don't call the Access parent control's Requery method.

Why don't you simply bind the RTF2 control to your field/control named
Me.RTFParagraph instead of setting the RTFText property programmatically
at run time?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Pascal Hagedorn" <da**************@web.dewrote in message
news:et**********@news.uni-kl.de...
>>I downloaded Steve Leban's RTF2 control and it shows me the report as
wanted.

The Problem is, if i want to print it, it comes a PopUp where it says
"properties write protected" (german: "Eigenschaft ist schreibgeschützt")
and then i have to complete kill access to continue, unfortunately the
report wasnt printed.

Thats the code for the "format" of the RTFControl2 of the report which
is -IMHO- producing the malfunction. Is it maybe the name "RTFControl2"?

Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As
Integer)
Dim Height As Integer
Me.RTFControl2.Object.RTFtext = ""
Me.RTFControl2.Object.RTFtext = Me.RTFParagraph
Me.RTFControl2.Requery
Height = Me.RTFControl2.Object.RTFheight
If Height 0 Then
If Height < 32000 Then
Me.RTFControl2.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFControl2.Height +
Me.RTFControl2.Top

If Me.RTFControl2.Object.RTFheight 0 Then
If Me.RTFControl2.Object.RTFheight < 32000 Then
Me.RTFControl2.Height = Me.RTFControl2.Object.RTFheight
End If
End If

Me.RTFControl2.RTFtext = Me.RTFControl2.RTFtext
End Sub

Whats wrong with that :) or with me ;) ...

Please tell me if you need further information! Thanks!


Mar 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
4
by: Marion Neubauer | last post by:
Hi! I'm using the RTF2 Control from Lebans web site with MS Access 2000. It's working very good. Now i want to create a letter with the formated text of the RTF2 control in MS Word 2000, but it...
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
1
by: dan.roffman | last post by:
Is there a way to span a report over multiple pages. I think you could do something like count the number of lines and if it exceeds a certain number, then put the rest of th text into another RTF...
6
by: Sharper | last post by:
I have just downloaded lebans rtf2 which initially looks very interesting. Having a little trouble though in getting the RTF2 toolbar to appear on my own db although it is on the sample. I have...
11
by: D Perron | last post by:
I am using the RTF2 activeX control from Stephen Leban's website and it works really well when there is one memo field. However, I cannot get it to work with multiple memo fields (I have 4). I...
4
by: prami | last post by:
Hello I'm sure I do something wrong, but I don't know what ... In Form 1 I painted the RTF2 control and bound it to a memo field. Entering and changing data therein works fine. Now, based on...
3
by: vtashore | last post by:
I downloaded Steve Leban's RTF2 control and it works as advertised. Good news! After reading reference material on the RTF standard codes, I have been able to write update queries to universally...
9
by: Tom | last post by:
Hi all: I'm having an odd problem with Stephen Leban's PDF creator. I'm trying to output to 11x17 sized paper. The PDF creator does its thing and when the PDF file opens, its at 800% zoom and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.