Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 14th, 2005, 05:35 PM
Registered User
 
Join Date: Jun 2005
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
Posts: 58
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





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





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