Output to clipboard, and pasting into Excel - encoding issue
Posted: Thu Mar 11, 2010 10:17 pm
Hi Simon,
I'm creating a tool in VB that takes in user input and runs a textpipepro filter in command line mode which outputs to the clipboard. Then the tool silently opens up excel and pastes this data into a specific column.
Everything is working great except that its pasting corrupted characters for non english characters. They look like multibyte unicode characters that are not being converted correctly on the clipboard.
The filter works fine if outputed to a text file so I think it is not a problem with the filter.
Is there something I need to do to handle the clipboard contents differently to make it paste correctly?
Thanks.
Anthony.
I'm creating a tool in VB that takes in user input and runs a textpipepro filter in command line mode which outputs to the clipboard. Then the tool silently opens up excel and pastes this data into a specific column.
Everything is working great except that its pasting corrupted characters for non english characters. They look like multibyte unicode characters that are not being converted correctly on the clipboard.
The filter works fine if outputed to a text file so I think it is not a problem with the filter.
Is there something I need to do to handle the clipboard contents differently to make it paste correctly?
Thanks.
Anthony.