User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,945 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,887 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 1455 | Replies: 2
Closed Thread
Join Date: Mar 2005
Posts: 32
Reputation: MrConfused is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
MrConfused MrConfused is offline Offline
Light Poster

Formating text to send to spreadsheet.....

  #1  
Aug 9th, 2005
I have a program that produces various reports. I need a way to send the reports to MSWorks/MSExcel. At the moment the reports are sent to a locked scrollable text box on-screen. This allows you to copy and paste the information to most word processor programs o.k. Unfortunately as I'm sure some of you already know MSWorks spreadsheet will automatically split a line if there is a comma in it. For example the line "I'm getting fed up with this, so I'm going out" once pasted in will result in the "I'm getting fed up with this" part being in column 1 and the rest in column 2. No good really.

Obviously copying from the text box with the report in does not work for spreadsheets, but is o.k for most wordprocessors. So for the spreadsheet side I'm thinking of sending the report directly to the clipboard using Clipboard.settext and formating the text in such a way that it does not result in a mess. Has anyone got any ideas on this? The only thing I can think of doing at the moment to sort out the problem is to replace the commas with the "/" characted for example. that is far from ideal though.
AddThis Social Bookmark Button
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation: mnemtsas is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
mnemtsas's Avatar
mnemtsas mnemtsas is offline Offline
Junior Poster

Re: Formating text to send to spreadsheet.....

  #2  
Aug 9th, 2005
I generate a ton of reports directly into Excel using the Excel object object model. This is the best way to do it.
 
Join Date: Jun 2006
Posts: 3
Reputation: friedolin is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
friedolin friedolin is offline Offline
Newbie Poster

Re: Formating text to send to spreadsheet.....

  #3  
Jun 28th, 2006
Originally Posted by MrConfused
I have a program that produces various reports. I need a way to send the reports to MSWorks/MSExcel. At the moment the reports are sent to a locked scrollable text box on-screen. This allows you to copy and paste the information to most word processor programs o.k. Unfortunately as I'm sure some of you already know MSWorks spreadsheet will automatically split a line if there is a comma in it. For example the line "I'm getting fed up with this, so I'm going out" once pasted in will result in the "I'm getting fed up with this" part being in column 1 and the rest in column 2. No good really.

Obviously copying from the text box with the report in does not work for spreadsheets, but is o.k for most wordprocessors. So for the spreadsheet side I'm thinking of sending the report directly to the clipboard using Clipboard.settext and formating the text in such a way that it does not result in a mess. Has anyone got any ideas on this? The only thing I can think of doing at the moment to sort out the problem is to replace the commas with the "/" characted for example. that is far from ideal though.
Hello, does this comma businiess also apply to ms works db? Your problem could be my rescue:
horizontal data (names) must be transferred into vertical columns in order to be sorted . Do you know how?
thanks! for an answer.. friedolin
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 8:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC