?
Solved

Changing Paragraph Style in R6

Posted on 2003-02-25
3
Medium Priority
?
305 Views
Last Modified: 2013-12-18
Is it possible to change paragraph style using the new R6 Rich Text LotusScript classes? I am trying to programmatically change the alignment of rich text fields from "left" to "center", and it seems that this is not possible, although it is very easy to change text style (font size, etc). Your help will be greatly appreciated.

Thanks
0
Comment
Question by:cyberzork
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 450 total points
ID: 8016835
Here an example for ALIGN_CENTER:
http://www-12.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/855dc7fcfd5fec9a85256b870069c0ab/e1c4942d8b7d970c85256c54004d44b2?OpenDocument

Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.Currentdatabase
Dim doc As New NotesDocument(db)
Call doc.AppendItemValue("From", session.Username)
Call doc.AppendItemValue("subject", _
"Meeting agenda")
Dim rtpStyle As NotesrichTextParagraphStyle
Set rtpStyle = session.CreateRichTextParagraphStyle
Dim richText As New NotesRichTextItem(doc, "Body")
rtpStyle.Alignment = ALIGN_CENTER
Call richText.AppendParagraphStyle(rtpStyle)
Call richText.AppendText("Where are we now")
Call richText.AppendText (" and where do we go from here.")
Messagebox rtpStyle.Alignment
Call doc.Save(True, False)


0
 

Author Comment

by:cyberzork
ID: 8023131
Well, I had already seen that in the documentation. However, I need to *change* paragraph style in existing rich text fields, not to create a new one. As a matter of fact, the above example would even work under R5.
0
 

Author Comment

by:cyberzork
ID: 8134298
I read on Notes.net that this is not possible. Thanks anyway.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question