473,654 Members | 2,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textboxes, RTF2 and Unicode

Hello,

I'm trying to use Stephen Leban's RTF2 ActiveX control in an access
database with unicode data. In VB, I pass the text value directly from
the text box control in a form to the rtf2 control.

rttextbox.plain text = forms!form1.tex tbox

When I step through the debugger, the value getting passed for unicode
characters are ?.

In the actual form textbox, the values show up correctly.

Can anyone help me figure out how to pass the data with the correct
unicode values?

Thanks.
Damon

Nov 13 '05 #1
4 2509
My RTF2 control is not Unicode compatible. You might try using the
StrConvert method on the string you want to pass to my control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Damon Reissman" <da***********@ gmail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hello,

I'm trying to use Stephen Leban's RTF2 ActiveX control in an access
database with unicode data. In VB, I pass the text value directly from the text box control in a form to the rtf2 control.

rttextbox.plain text = forms!form1.tex tbox

When I step through the debugger, the value getting passed for unicode
characters are ?.

In the actual form textbox, the values show up correctly.

Can anyone help me figure out how to pass the data with the correct
unicode values?

Thanks.
Damon


Nov 13 '05 #2
Hi Stephen,

Thanks for answering me so fast. I think I'm being a bit dim. I've
look around, but I can't find any reference to a method called
strConvert. Can you point me in the right directions?

Thanks.
Damon

Nov 13 '05 #3
Mispelled by me. StrConv. It's a method of the VBA lib.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Damon Reissman" <da***********@ gmail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi Stephen,

Thanks for answering me so fast. I think I'm being a bit dim. I've
look around, but I can't find any reference to a method called
strConvert. Can you point me in the right directions?

Thanks.
Damon


Nov 13 '05 #4
Hmm. That doesn't seem to do the trick. Even before the stingis
loaded into your control (as soon as vba sees the data from the text
box) i am getting question marks for the unicode characters.

Nov 13 '05 #5

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

Similar topics

6
3397
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,...
4
2540
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 shows all the code inside and not the formating ... I'm not using vba-code, i'm making the letter by hand (as a serial letter in Word with the Access-DB as data source). How can i create a letter which looks like the report in Word? Is it possible...
3
3305
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...
1
1871
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 control. I just don't know how to code that... Any help appreciated. D
6
2864
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...
11
4740
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 saw the code for multiple memo fields and am trying to use it but not having any luck. My RTF controls on the form just show "RTF2 Control Design View Window". Any help would be appreciated.
1
1985
by: Jako | last post by:
Hi guys... Well once again I'm in a dilemma. Currently I have a RTF2 object in Access that is linked to a memo field in a table, the reason for this is so that I can have bullets and numbers in the field. The problem is however that the memo field has pritty much all the ActiveX coding in it to make the RTF2 field appear the way we assigned it. Now the main idea was to reference the content of the RTF2 field the way it appears in the...
4
2184
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 some space limitations, I want to reduce the control's size and add a zoom button nearby, which opens Form2 with an unbound RTF2 control. What I want is simple. - Having still the possibility to see, enter and update text in RFT2 on Form1 -...
1
3288
by: replyrpatil | last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in) Problem Recreation : Download attached RAR file (http://download.yousendit.com/627919383AFAA7E3 ) Steps 1) Install RTF2 program created by Lebans 2) Install ZAN Image Printer (Virtual Printer) 3) Create Custom Paper Size ----...
0
8375
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8707
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 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...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7306
agi2029
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...
1
6161
isladogs
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...
0
5622
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();...
0
4149
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...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.