•
•
•
•
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
![]() |
•
•
Join Date: Mar 2005
Posts: 32
Reputation:
Rep Power: 4
Solved Threads: 0
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.
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.
•
•
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation:
Rep Power: 5
Solved Threads: 1
I generate a ton of reports directly into Excel using the Excel object object model. This is the best way to do it.
Mark Nemtsas
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
•
•
Join Date: Jun 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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.
horizontal data (names) must be transferred into vertical columns in order to be sorted . Do you know how?
thanks! for an answer.. friedolin
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- Why won't this code work? (VB.NET)
- Problem formating VB string for clipboard (Visual Basic 4 / 5 / 6)
- Listing words in an Array of text (C++)
- anybody play halo (Geeks' Lounge)
- Good Luck w/This one: Excel Question VBA/Macro/other (MS Access and FileMaker Pro)
- SMS from VisualBasic? (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Datareport -Report Header Section
- Next Thread: Freezing Hangman Program?! + more...

Linear Mode