Save formatted text from RichEdit control to rtf-file
How can I save the text from Rich edit control (2.0) to *.rtf , *.txt ,
I tried to get the buffer and putting the buffer to file, then saving
but the text in the file is something different.
Please let me know what to do?
Here is the Code I ma using:
mFile.Seek( 0, CFile::begin );
int iTotalTextLength = m_oChatMessageControl.GetWindowTextLength();
HWND focusWnd = ::GetFocus();
cBuffer2 = m_oChatMessageControl.GetSelText();
LPTSTR...Day of week time control
Let's say I wanted something to occur at specific times (via DDE) on Sunday,
a different thing on Monday -Tue, Wed, Thurs, Fri Sat and continue over and
I see how I can know the day and time, but to use it in a formula escapes
The use is for a simple area based light control in my house.
"vernon" <there@there> wrote in message
> Let's say I wanted ...Controlling multiple TCP connections from Outlook 2003 clients
I've noticed that Outlook 2003 clients can have multiple TCP
connections to the mailbox store on Exchange. As the following web
"This behavior is by design. Outlook can open multiple connections to
parallelize its data communications with the Exchange server. The
actual number of connections will vary according to the version of
Outlook that you're using and the mode in which you're using it. For
Microsoft Office Outlook 2003 in Cached Exchange Mode, you'll see four
connections for the mailbox, ...moving payables data from open to history
A client says that someone imported data about a year or two ago into Great
Plains from their AS400.
Many payables documents that were imported should have been coded during the
import as open, instead of history. The client knows that she can take care
of this herself within two hours, by simply turning off the posting to the GL
and entering and posting the payables documents to move them to history.
But, she is wondering if there is a quick and easy way to do this on the
I'm familiar with the open and history payables tables within GP. And, I
know through a T...Excel moving horizontal columns to vertical
I am trying to find a simple way of moving data in horizontal columns
(referencing the key in column 1) to vertical colums (still referenceing the
same key). This would mean automatically repeating the values in column one
for every entry in the moved columns.
I can do this through the pivot table, but this is a long drawn out process.
I'm not sure if this will work for you, but you can try this:
- Highlight & copy on the horizontal value you want to make vertical
- Now highlight the vertical area you want these value to got
- Right Click when highlighted & choose...Outlook 2003: Most messages are moved to junk folder
I am getting a lot of spam recently, at least looking at the numbers of
mails in my junk folder.
However, it turns out that these messages are not spam at all, but just
regular messages (even from the same domain), that should remain in the
regular inbox. Even when I identify a message as 'Not spam', then
subsequent messages from that sender keep popping up in the junk
Obviously I have changed the junk mail settings to 'No automatic
filtering' but Outlook keeps thinking it is smarter than I am.
Any idea? Googled the internet already but couldn't find anoth...Yet another duplicate record dilemma
I have a table with records where one field are duplicates. I'm able to
query to find duplicates and delete them, however what I need to do is find
the duplicates, produce a total from another field, delete the duplicates and
update the record field with the new total.
Use the Find duplicates wizard, the build an Update query and either add to
Update MyTable Inner Join Querty1.ID On MyTable.ID Set MyField = MyField +
or just update it:
Update MyTable Inner Join Querty1.ID On MyTable.ID Set MyField =
Then delete the duplicate data.
Ar...How to make a Add key disabled after adding one record unless
I have a form where I am adding records. There are two boxes where one has
to put the lineitemnumber and another box where one has to put the
description. Unless the above two boxes are filled in the Add command box
need to be disabled. Now, the problem is after adding one record the Add
button is enabled and I cannot disable it. I would appreciate any help to
The error message is:
The methos is not supported
The following is the code:
Private Sub cmdadd_Click()
On Error GoTo Err_cmdadd_Click
If (IsNull(Me.LineItemID) = True) Or (IsNull(Me.Description) = True) Then
...NNTP move to Exchange?
I'm having a problem with getting a NNTP feed from a
INND 2.2.1 server to Exchange 2003; are there any known
issues here? Has anyone done this type of migration
before? What issues did you encounter?
It seems as if Exchange just wants to pull down a few
of the groups (of which we have over 100 internal) and
even with that, not even pull all of the messages in from
those few groups (it usually gets a few hundred
messages). I'm using the basic NNTP wizards but
everything looks to be configured correctly.
...how to config Server for one user which has 2 mail address.
we have one NT4.0 + Exchange 5.5 Server "A" Email firstname.lastname@example.org ��and
windows2003 + exchange 2003 Server "B" email@example.com user name is same in A
B��Mx record was be set ,question is how to config Exchange 2003 to receive
down the mail to Server A , because of we need to replace A with B.
thanks a lot.
E2K3 setup guides you through common scenarios (like yours) pretty much holding
your hand - on welcome screen tell it that you have existing E55 org and want to
join it, then follow on-screen instructions. Having usable backup of Exchange
databases and AD i...How Can I Control When Messages are Downloaded from Server
I have the box "Check for messages every ___ minutes" unchecked
Yet seemingly randomly, messages get downloaded a couple of times a day
without my clicking "Sync." This is problematic due to the way I share the
Is there another setting I need to keep this spontaneous downloading from
"Gripper" <Gripper@discussions.microsoft.com> wrote in message
> I have the box "Check for messages every ___ minutes" unchecked
> (too...How do I freeze or lock cells to show up on each page without typ.
I have a 4 page sheet. I have a header already. But I want to freeze the
cells that head up the first page. I've done it before in school but can't
remember what it is called or how to do it...that's why I'm doing this.
Anyway, I want these cells to print off on each new page without having to
type them on each page. I hope that makes sense and I hope that someone can
If you mean for printing do file>page setup>sheet and select rows to repeat
otherwise for viewing you can select a2 if the headers start in row 1 and do
window> freeze panes
...Hiding sheet tab names
I created an automated workbook where I need to keep the sheet tab name
hidden from the user. I went into Tools-Options-View and unchecke
Sheet Tabs. Then I protected the workbook and the sheet yet the use
can still go into Tools-Options-View and re-check the Sheet Tabs t
view them again.
How do I lock the user out of viewing the sheet tabs? :confused
Message posted from http://www.ExcelForum.com
You could use the "very hidden" property that prevents
users from viewing hidden worksheets without using VBA:
Dim ws2 As Worksheet
For Each ws2 In ThisWorkbook.Worksheets
If w...Investment Summary on Home Page
This is a multi-part message in MIME format.
Okay, I have had investments that I have sold completely within an =
account and purchased other investments. When I go to "My Money" home =
page, it will still show the old investment under the "Investment =
Summary", "Investment Performance" and "Best and Worst Performance" =
sections, along with the new investments. How can I clear out the old =
investments from...Page up and Page down
Is there any way the you can use Code to cause a form to do page up and page
down. I have a Long form that some of the information that is at the bottom
of the form is out of view and only use by certain people.
How can I have a botton on click go page down to the bottom and another
button that will return the form to the top of the form.
I know that you can use the keys to accomplish this but for appearance value
I would rather use a button on the form to accomplish this.
You can put a Page Break control on your form.
Then, code on the Click event of your button...Messenger emoticons
I have changed laptops and I did grab the old laptops custom emoticons
folder (all in dt2 and id2 file endings.) But when i copy everything in
the folder and add it to my new laptops custom emoticons folder... they
get added (i.e. show up in the folder) but the images/gifs or names dont
show up on the actual msn... *what gives*?
Do I have to change the dt2 endings to gif or jpeg and go to "create" in
msn for each of them to add them in? (I tried with one and it worked)
Only problem is i have alot, like 203 dt2 files so changing the ending
to .gif and adding each singu...How do I print 4 postcards to one page to match my postcard paper
I bought perforated postcard paper that has 4 postcards per sheet. How do I
create that in Publisher? I created it exactly how I want it to look and
then realized it's only printing 2 per page.
Which version of Publisher are you using?
MVP Microsoft [Publisher]
How to ask a question
"Lauren" <Lauren@discussions.microsoft.com> wrote in message
>I bought perforated postcard paper that has 4 postcards per sheet. How do
>...free ActiveX Control for MathML editing
I'd like to suggest free ActiveX Control for MathML
This ActiveX Control is a part of Formulator MathML Suite by Hermitech
http://www.hermitech.ic.zt.ua. It makes it simple to develop new
software products, keenly aware of the mathematical typesetting and
MathML presentation/semantics rules.
...Can I do this query in one step?
Suppose I have a talble like this, each record has a unique ID. All"A"s or "B", "C"s should have only x or y or z property attached. Iwant to find A, B or C which has more than one properties.1 A x ...2 A x ...3 A x ...4 A y ...5 B x6 B y7 C z....resutls would look like:A xA y....I think I can do this in two steps or with a subquery. Then I thoughtof self-join but didn't figure out how to use it in this case.Thanks a lot! SELECT DISTINCT and do not include the record ID perhaps? Or is the record ID vital?"muster" <firstname.lastname@example.org> wrote in me...How many pages can a booklet have?
Hi how many pages can a booklet have? Is there a limit to the pages in a
publisher booklet. Each page has three photos.
There is no limit, your RAM may decide for you. What version Publisher?
Mary Sauer MSFT MVP
"Verystumped" <Verystumped@discussions.microsoft.com> wrote in message
> Hi how many pages can a booklet have? Is there a limit to the pages in a
> publisher booklet. Each page has three photos.
...Problems with MFC list controls
I have a large list control with many inventory control items displayed
within. When someone single clicks on an item, it displays information
about that item in another part of the dialog. I have a three-fold problem,
the master list has multiple columns in it, in order to make the selection
work properly, only column 0 can be selected, is there a way to make a valid
row selection if you select an item using any of the other columns? Second
issue is the highlight of the selection. Only column 0 in the list control
will highlight, is there a way to make the entire row highlight when an...Link to Page when saving to web
I have some drawings that have several shapes with "Go to page on
double-click" behavior. How can I keep this functionality when saving as a
...Can DrawFrameControl() draw XP style controls?
My application supports XP style controls. But I found the
DrawFrameControl() can not draw XP style controls in my application.
Can I draw XP style controls?
...Compare each value in a range to each value in another range
I am looking for a macro that will return a comparison of each cell in
a range to each cell in another range.
example. the first range would have vales of 1,2,3 and the second
range would have values of 5,6,7 Thus the macro should return 9
possible comparisons: 1 & 5, 1 & 6, 1 & 7, 2 & 5, 2 & 6, 2 & 7,
3 & 5, 3 & 6, 3 & 7,
Can anybody help me with this??
Just hazarding some thoughts here ..
Perhaps using formulas would suffice ?
Example: Assume 1st range is A1:A3, 2nd range is B1:B3. Then
Compare 1st range against 2nd range
I...Summarising per page
I have a worksheet that contains a list of numbers, and in printout is
more than 5 printed pages.
What I want is to summarise the list per printing page.
I want to do this for any printed page length (i.e. Letter, A4,) or
orientation (Portrait, Landscape).
Thanks in advance,
have a look at
Nick Karoumpalos wrote:
> Hi all,
> I have a worksheet that contains a list of numbers, and in printout
> more than 5 printed pages.
> What I want is to summarise the list per printing page.