473,378 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Strip data in clipboard to text only so that it may be pasted into memo field

I have a form with a large memo field that is designed to hold lengthy
comments. There are times when my users need to paste in e-mails
directly into the comment box. This works fine unless their e-mail
contains attachments, pictures, etc. In the event that their copy
action captured something other than text than nothing happens when
they try and paste into the comment field.

I considered handling this with an imbedded OLE object, but the
application already houses 10,000 comments, and will eventually house
around 30-40k in the near future. My thoughts are that this would be
way too big.

I'm wondering if there would be a method to 'clean' the object in the
clipboard so that it contained only text. I'm guessing this would
require some sort of API call, but I'm not sure how to go about making
something like that. I was wondering if anybody had seen some existing
code that did something similar.

I am currently using A97 with Win2k. In about a month we are scheduled
to all have Win XP with Office 2003, and already half of the users
using this have the upgraded version. I am not sure if this newer
version of Access will provide additional tools to make this easier.

Thanks in advance

-Andy

Oct 31 '06 #1
2 1531
On 31 Oct 2006 15:37:28 -0800, An***********@bcbsmn.com wrote:
>I have a form with a large memo field that is designed to hold lengthy
comments. There are times when my users need to paste in e-mails
directly into the comment box. This works fine unless their e-mail
contains attachments, pictures, etc. In the event that their copy
action captured something other than text than nothing happens when
they try and paste into the comment field.

I considered handling this with an imbedded OLE object, but the
application already houses 10,000 comments, and will eventually house
around 30-40k in the near future. My thoughts are that this would be
way too big.

I'm wondering if there would be a method to 'clean' the object in the
clipboard so that it contained only text. I'm guessing this would
require some sort of API call, but I'm not sure how to go about making
something like that. I was wondering if anybody had seen some existing
code that did something similar.

I am currently using A97 with Win2k. In about a month we are scheduled
to all have Win XP with Office 2003, and already half of the users
using this have the upgraded version. I am not sure if this newer
version of Access will provide additional tools to make this easier.

Thanks in advance

-Andy
Take a look at
http://vb.mvps.org/articles/ap200106.asp

if you read in in text mode that should work.

Nov 1 '06 #2
Take a look at
http://vb.mvps.org/articles/ap200106.asp

if you read in in text mode that should work.
Thanks for the link, I'll page through that and see if I have any luck
interpreting it.

Nov 1 '06 #3

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

Similar topics

2
by: Trader | last post by:
Hi, I'm trying to use Mark Hammond's win32clipboard module to extract more complex data than just plain ASCII text from the Windows clipboard. For instance, when you select all the content on...
0
by: MacDk | last post by:
Hi, I need to paste some text to users clipboard from an ASP.NET-page. This can be done by DHTML, but the trick is that the text must by pasted as HTML not pure text. Cant figure out how to do...
6
by: Kevin Chambers | last post by:
Hi all-- In an attempt to commit an Access MDB to a versioning system (subversion), I'm trying to figure out how to convert a jet table's metadata to text, a la SaveAsText. The end goal is to...
2
by: alexsg | last post by:
I'm setting up a resolutions database where each resolution will be copied from Word documents and pasted into a memo field. The resolution will be in the form: Resolution title <cr> Project no...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
0
by: Grip | last post by:
Hi, I have gone throught the group and Microsoft's online help and have seen many suggestions but I am still seeking clarity: 1. I have an excel spreadsheet. Column A contains text that may...
4
by: ACF | last post by:
Hello, I'm programming an application in MS Access 2003 / 2007 and would like to know how I can copy highlighted text to the windows clipboard? I am now using a statement in combination with...
4
by: Neil | last post by:
Is there a problem with stability when one uses too many text (memo) fields? I'm having a problem with data from one record occasionally ending up in another record, though apparently not through...
0
by: monty0018 | last post by:
Hi, I'm writing a custom clipboard application in VB .NET 2008 similar to Ditto (http://ditto-cp.sourceforge.net/). I have tried targeting .NET Frameworks 2.0, 3.0, and 3.5 with the same...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.