473,790 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Steve Leban's RTF Control;Justify Text Vertically?

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 change the font or font
size directly in my table without having to edit the text natively in
Leban's control. Also good news.

I see that there is an RTF code, \posyc, which would center the text
vertically within the reference frame. The problem is I don't know how
to address the reference frame within the RTF2 control. In fact, I
don't know what a reference frame is, at all. Bad news.

Steve, if you're out there, could you let me know if there is a way to
vertically justify the text within your RTF2 control? Also, is there
any other way to import Rich Text directly into the fields in my Access
database without having to use the Windows Clipboard as an
intermediary? I have 4 fields in my table, each of which uses the RTF2
control to display their rich text data. My hope is that there might
be a way to allow remote users to enter their rich text data into a MS
Word table, or any ODBC enabled app, and that I would be able (using
automation or some other technique) to cycle through the cells in the
table and import the formatted text directly into my Access table. Is
this possible?

Oct 19 '06 #1
3 4568
I have not worked with frames within an RTF document. I do see the RTF codes
to set the dimensions and position of a frame.
The RTF2 control does not directly expose this functionality but it does
support it. You stated you were programmaticall y building RTF encoded
strings so adding support for frames should be straightforward for you. I'm
sure if you search the Net you will find further info on RTF frames.

I'm not sure that I understand your second question. You certainly do not
have to use the Clipboard to transfer data from an external app to Access
but it is gernerally the easiest method for apps that do not support
Automation.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"vtashore" <rs****@phhlaw. comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
>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 change the font or font
size directly in my table without having to edit the text natively in
Leban's control. Also good news.

I see that there is an RTF code, \posyc, which would center the text
vertically within the reference frame. The problem is I don't know how
to address the reference frame within the RTF2 control. In fact, I
don't know what a reference frame is, at all. Bad news.

Steve, if you're out there, could you let me know if there is a way to
vertically justify the text within your RTF2 control? Also, is there
any other way to import Rich Text directly into the fields in my Access
database without having to use the Windows Clipboard as an
intermediary? I have 4 fields in my table, each of which uses the RTF2
control to display their rich text data. My hope is that there might
be a way to allow remote users to enter their rich text data into a MS
Word table, or any ODBC enabled app, and that I would be able (using
automation or some other technique) to cycle through the cells in the
table and import the formatted text directly into my Access table. Is
this possible?

Oct 20 '06 #2
Thanks for the quick reply.

My second question is about trying to import formatted data from
somewhere else into the fields in Access that are the control source
for these RTF controls.

I know that that I can select text in Word and copy and paste it into
your control. The question is, is there a way import the data directly
into my table and have it retain all of the RTF codes?
When I paste it into your control, I think your DLLs work some magic on
the text to explicitly store the codes in my Access table. If I try
and copy the text directly into my table, I don't get the RTF codes at
all, but I see some system characters to represent Tabs and LFs.

I would like to find a way to import RTF data directly into my table in
such a way that it will display correctly in your RTF2 control. Is
this possible? Is it something I can do myself? If it takes some
extra work to finesse your DLLs to cooperate, we are open to
compensating you for your time.

Thanks again for your help.

Randy Shore

Stephen Lebans wrote:
I have not worked with frames within an RTF document. I do see the RTF codes
to set the dimensions and position of a frame.
The RTF2 control does not directly expose this functionality but it does
support it. You stated you were programmaticall y building RTF encoded
strings so adding support for frames should be straightforward for you. I'm
sure if you search the Net you will find further info on RTF frames.

I'm not sure that I understand your second question. You certainly do not
have to use the Clipboard to transfer data from an external app to Access
but it is gernerally the easiest method for apps that do not support
Automation.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"vtashore" <rs****@phhlaw. comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
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 change the font or font
size directly in my table without having to edit the text natively in
Leban's control. Also good news.

I see that there is an RTF code, \posyc, which would center the text
vertically within the reference frame. The problem is I don't know how
to address the reference frame within the RTF2 control. In fact, I
don't know what a reference frame is, at all. Bad news.

Steve, if you're out there, could you let me know if there is a way to
vertically justify the text within your RTF2 control? Also, is there
any other way to import Rich Text directly into the fields in my Access
database without having to use the Windows Clipboard as an
intermediary? I have 4 fields in my table, each of which uses the RTF2
control to display their rich text data. My hope is that there might
be a way to allow remote users to enter their rich text data into a MS
Word table, or any ODBC enabled app, and that I would be able (using
automation or some other technique) to cycle through the cells in the
table and import the formatted text directly into my Access table. Is
this possible?
Oct 20 '06 #3
Re-posting to attract Steve Lebans' attention (hopefully.)
vtashore wrote:
Thanks for the quick reply.

My second question is about trying to import formatted data from
somewhere else into the fields in Access that are the control source
for these RTF controls.

I know that that I can select text in Word and copy and paste it into
your control. The question is, is there a way import the data directly
into my table and have it retain all of the RTF codes?
When I paste it into your control, I think your DLLs work some magic on
the text to explicitly store the codes in my Access table. If I try
and copy the text directly into my table, I don't get the RTF codes at
all, but I see some system characters to represent Tabs and LFs.

I would like to find a way to import RTF data directly into my table in
such a way that it will display correctly in your RTF2 control. Is
this possible? Is it something I can do myself? If it takes some
extra work to finesse your DLLs to cooperate, we are open to
compensating you for your time.

Thanks again for your help.

Randy Shore

Stephen Lebans wrote:
I have not worked with frames within an RTF document. I do see the RTF codes
to set the dimensions and position of a frame.
The RTF2 control does not directly expose this functionality but it does
support it. You stated you were programmaticall y building RTF encoded
strings so adding support for frames should be straightforward for you. I'm
sure if you search the Net you will find further info on RTF frames.

I'm not sure that I understand your second question. You certainly do not
have to use the Clipboard to transfer data from an external app to Access
but it is gernerally the easiest method for apps that do not support
Automation.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"vtashore" <rs****@phhlaw. comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
>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 change the font or font
size directly in my table without having to edit the text natively in
Leban's control. Also good news.
>
I see that there is an RTF code, \posyc, which would center the text
vertically within the reference frame. The problem is I don't know how
to address the reference frame within the RTF2 control. In fact, I
don't know what a reference frame is, at all. Bad news.
>
Steve, if you're out there, could you let me know if there is a way to
vertically justify the text within your RTF2 control? Also, is there
any other way to import Rich Text directly into the fields in my Access
database without having to use the Windows Clipboard as an
intermediary? I have 4 fields in my table, each of which uses the RTF2
control to display their rich text data. My hope is that there might
be a way to allow remote users to enter their rich text data into a MS
Word table, or any ODBC enabled app, and that I would be able (using
automation or some other technique) to cycle through the cells in the
table and import the formatted text directly into my Access table. Is
this possible?
>
Oct 27 '06 #4

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

Similar topics

2
13188
by: Rob Richardson | last post by:
Greetings! I just developed a little control I've wanted for ages. It links a textbox and a label into a single control. At first, I gave it a property named LabelText and another named BoxText. Both of them happily appeared in the Properties window when I dropped my control onto another control. But then I remembered that Microsoft wants to standardize on using the property name "Text" for things that look like text. I decided that...
1
2121
by: Steven K | last post by:
Hello, I am using a User Control (ctlHeader.ascx). My problem is that I can't change the text of my literal control "ltlPricingHeader" in the file MyPage.aspx. I can bring in the user control as long as it's static. Any help with this would be appreciated. -- Thanks in advance,
1
2967
by: Opa | last post by:
Hi, In my page load event I set the Text value of a TextBox control as follows: private void Page_Load(object sender, System.EventArgs e) { this.txtName = "Joe" } I have a button which needs to get the value of the txtName after any changes.
6
3164
by: jcrouse | last post by:
I am rotating some text is some label controls. In the one place I use it it works fine. In the other place I use it I can't figure out the syntax. I don't really understand the event. Where it works fine, it seems to fire when the form changes visibility. Here is the code. Private Sub lblP1JoyUp_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles lblP1JoyUp.Paint If lblP1JoyUp.Visible = True Then Dim...
2
3487
by: Kiran | last post by:
Hello all, I am using a tree to display stuff, and it is constantly updated, but what I have noticed is in the lowest level, there is clearly noticable cutoff of the text I place there. The cutoff is existent even if I do not update the text inside the tree constantly. It seems that the text is halfway below where it should line up. I tried placing an image to see if that would correct it, but it does not. The image is perfectly lined up,...
8
3480
by: Zytan | last post by:
TextChanged is only called when the user modifes a control's text, not if the program does. How can I make it be called when the program modifies the text? Zytan
0
1212
by: =?Utf-8?B?QW5keQ==?= | last post by:
Hi, Two very related questions. a) On clicking a hyperlink control I need to be able to GET the text of the control. How can I do this? b) How can I then SET the text of the hyperlink control to something else? This can;t be hard but is so far eluding me (new to JS - managed to get by without it for years!)
1
2529
by: IdleBrain | last post by:
Hi, I need a way to update an Edit control control in MFC from a timer callback function. How can that be done as we cannot reference dialog box controls from callbacks? Even the following code gives me problems: VOID CALLBACK TimerProc ( HWND hParent, UINT uMsg, UINT uEventID, DWORD dwTimer )
2
2105
by: =?Utf-8?B?SlA=?= | last post by:
Hi all. I'm having a problem with a postback issue and I think it's cache related. Here's my setup: I have a web site that has a signup section. This has simple things like name, age, birth date, etc. When the user visits this page for the first time, a person's data object that is used to store the user's name, age, birth date, etc. is created and stored in session. On the first visit to this page, the object is empty. Whenever the...
0
9666
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
9512
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,...
0
10413
Oralloy
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...
0
10200
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...
0
9986
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6769
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
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
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
3
2909
bsmnconsultancy
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...

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.