Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 14th, 2005, 05:35 PM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to darvarin Send a message via AIM to darvarin
Default open a formatted excel file from program

Hello,

I am writing a program in C++ which involves an output of data into an Excel spreadsheet. My question is: is there any way to create a new, formatted Excel file through the program (with defined length of the columns A,B,C,D...., borders, wraped text into the boxes, and color)?

Any ideas for any of these issues are greatly appreciated.
Thanks a lot.

Reply With Quote
  #2 (permalink)  
Old June 15th, 2005, 03:24 AM
Authorized User
 
Join Date: Mar 2005
Location: Wagga Wagga, NSW, Australia.
Posts: 60
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB
Default

Look up "Importing Files" in Excel Help. You may import files into Excel in several formats. For example, on output from Excel, you may have comma delimited fields so that the contents of each cell in a spreadsheet are written to file with a comma separating each value (irrespective of the width of the cell).

For example,
     | Jan | 12 | 34 |
     | Feb | 54 | 98 |

then becomes

     Jan,12,34,Feb,54,98<EOF>

If your program produces output in this format, you can the import it into Excel.

Alan


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Access table to a pre-formatted Excel file mccoy Access VBA 2 May 25th, 2007 08:04 AM
Launching a program/open a file through VBA biglazy Access VBA 3 February 28th, 2006 04:30 PM
How to open Excel File in Access losartan Access 1 January 24th, 2005 06:08 PM
open excel file C# ? npqk VS.NET 2002/2003 2 November 26th, 2004 10:31 AM



All times are GMT -4. The time now is 07:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.