Hi,
I'm using Stephen Lebans RTF control in an unbound Access 2000 form.
To populate the control I simply set the RTFtext property to the value
of the memo field in the database containing the RTF text. When my
form opens I get a very unhelpful message that tells me: Property is
read only. However, the RTF control is populated correctly and each
record has data. I believe this is an issue with how Access puts the
control onto the form because I tried the same thing on a pure Visual
Basic 6 form and did not have this issue. Has anyone experienced this
problem? The field must remain unbound to facilitate functionality I
have built in and maintain the ability to move to an ADP.
On another note, when using this control in my report (bound this
time) I find that if the RTF text can't fit completely on one page the
control won't split and span multiple pages, instead it will leave
gaping blank spots where it won't fit. Any suggestions?
Thanks so much,
Cameron Laird 4 2664
Perhaps you are trying to write to the property before the control is
fully instantiated onto the Form. What event are you using?
--
HTH
Stephen Lebans http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Cameron Laird" <cl****@purolat or.com> wrote in message
news:a9******** *************** ***@posting.goo gle.com... Hi,
I'm using Stephen Lebans RTF control in an unbound Access 2000 form. To populate the control I simply set the RTFtext property to the value of the memo field in the database containing the RTF text. When my form opens I get a very unhelpful message that tells me: Property is read only. However, the RTF control is populated correctly and each record has data. I believe this is an issue with how Access puts the control onto the form because I tried the same thing on a pure Visual Basic 6 form and did not have this issue. Has anyone experienced this problem? The field must remain unbound to facilitate functionality I have built in and maintain the ability to move to an ADP.
On another note, when using this control in my report (bound this time) I find that if the RTF text can't fit completely on one page the control won't split and span multiple pages, instead it will leave gaping blank spots where it won't fit. Any suggestions?
Thanks so much,
Cameron Laird
You were right, I was trying to populate the control too early. I moved
the call to my population function to the Activate event and the error
went away.
Thanks alot,
Cameron
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I'm using the Form Open even to query the table in my database. This
Event calls a function that I have written to populate the fields after
the recordset has returned. Should I be using another event? Or is
there a better way to set the text of the RTF control on an unbound
form, I simply set the RTFText property to whatever I want it to be.
Thanks,
Cameron
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
The Activate event is not the correct choice. Use the Form's Load event.
--
HTH
Stephen Lebans http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Cameron Laird" <cl****@purolat or.com> wrote in message
news:3f******** *************@n ews.frii.net... You were right, I was trying to populate the control too early. I
moved the call to my population function to the Activate event and the error went away.
Thanks alot,
Cameron
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 sized strangely using the .RTFHeight property of the
control. Specifically, lines of text get cut off the bottom of the control
when I use the code provided in the sample report on the lebans.com site. It
seems that when there is Chinese text,...
|
by: Alex |
last post by:
The JustiDirect text justification on Stephen LeBans site works well
but I cannot get it to work on a sub report. Could anyone tell me if
this is possible.
Thanks.
Alex
|
by: Robert |
last post by:
Hello.
I have been trying out the Lebans ToolTip Classes at
http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a
form. The classes I am using are located at
http://www.lebans.com/DownloadFiles/A2kTooltip.zip
So far the classes work perfectly, except that now I need to extend it to
support other controls besides the ones given in the example form. I have
gotten it to work with some controls, but not others. I...
|
by: Robert |
last post by:
Stephen,
I think I figured out the problem. I was able to get Check Boxes and Option
Buttons to work on my form by TURNING OFF RECORD SELECTORS on the form. Not
sure why this would make a difference. Perhaps Access attributes the hWnd
of the form to the Record Selector if these are turned on.
In any case, I ran some tests on your Customers form and sure enough, a
Check Box or Option Button will work fine until you turn on Record...
|
by: Alex Wisnoski |
last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to
preserve formatting) from an Access 97 application. I have made the
reference to his mde and copied the modules into my db. I have
created a custom toolbar with a custom control, "Export to File". In
the On Action property (of the export control) I inserted the code
"pf.ExportToMSWord rptApplicantReferral" which I had copied from his
sample db except for the name of my...
| |
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 output one of Stephen Lebans' RTF2 controls on the
report. He indicates that a copy and paste method will work from a form to
the Word doc and that is fine although I have not done this in VB, rather
used ^C and ^V
I suspect that a similar method...
|
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 imported the modules correctly
(i think) and am able to create a RTF2 object from form design mode>active x
, but cant find the toolbar.
Secondly, is it possible to import text into an RTF2 memo field from say
word or excel using GET EXTERNAL...
|
by: DFS |
last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to
open below the cursor position. It currently opens just to the right and
below the cursor position.
I hunted through the code, but can't determine what to alter.
Very nice piece of work, by the way.
Thanks
|
by: MLH |
last post by:
Short of inserting code similar to that shown below
in the OnGotFocus event property for each and
every control on the form, is there a form-level
event I could monitor firing similar code. I don't
want to sprinkle code all over the form if I can
do what I want in a single place.
Dim ctlCurrentControl As Control
Dim strControlName As String
Set ctlCurrentControl = Screen.ActiveControl
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |