Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unicode Programming Pin
f6430-May-04 8:03
f6430-May-04 8:03 
GeneralRe: Unicode Programming Pin
Truong D. Toan30-May-04 20:01
Truong D. Toan30-May-04 20:01 
GeneralRe: Unicode Programming Pin
f6431-May-04 8:05
f6431-May-04 8:05 
GeneralRe: Unicode Programming Pin
Diddy1-Jun-04 5:31
Diddy1-Jun-04 5:31 
GeneralPrinting Bitmaps Pin
Sergio Batarce30-May-04 5:56
Sergio Batarce30-May-04 5:56 
GeneralRe: Printing Bitmaps Pin
Roger Allen1-Jun-04 5:12
Roger Allen1-Jun-04 5:12 
GeneralRe: Printing Bitmaps Pin
Sergio Batarce1-Jun-04 7:23
Sergio Batarce1-Jun-04 7:23 
GeneralCreating Excel File -- Autofit cells Pin
shultas30-May-04 4:04
shultas30-May-04 4:04 
Hi all.

I am using a class found here http://www.codeproject.com/database/cspreadsheet.asp to create an excel spreadsheet ( i believe it uses ODBC )

It works great except I cannot, from my code, get the cells to autofit. That is, when you load up the file in Excel, a lot of the contents of the cells get cut off, because the cell is not big enough. I need to be able to tell it to autofit (automatically through code) or be able to specify the width of each column of cells. If I bring up the file in excel, and select all of the cells, then click on Column->Autofit, it makes it look right instantly ... However, I am planning on rolling out a program that generates reports and I don't want to have to tell the users that they have to do this every time they open a report.

Any help in the right direction would be appreciated!

-Shultas
GeneralRe: Creating Excel File -- Autofit cells Pin
f6430-May-04 8:19
f6430-May-04 8:19 
QuestionHTMLHelp: How to start with? Pin
JHAKAS30-May-04 3:24
JHAKAS30-May-04 3:24 
AnswerRe: HTMLHelp: How to start with? Pin
Ravi Bhavnani30-May-04 7:52
professionalRavi Bhavnani30-May-04 7:52 
Generalresize Pin
Anonymous30-May-04 2:49
Anonymous30-May-04 2:49 
GeneralGDI Gurus, Ellipses Pin
Abin30-May-04 2:12
Abin30-May-04 2:12 
GeneralRe: GDI Gurus, Ellipses Pin
Dominik Reichl30-May-04 4:55
Dominik Reichl30-May-04 4:55 
GeneralRe: GDI Gurus, Ellipses Pin
f6430-May-04 8:40
f6430-May-04 8:40 
GeneralType casting problem Pin
RickardIsraelsson30-May-04 2:11
RickardIsraelsson30-May-04 2:11 
GeneralRe: Type casting problem Pin
PJ Arends30-May-04 4:28
professionalPJ Arends30-May-04 4:28 
GeneralCreating simple text editor using CView as base Pin
haritadala29-May-04 23:05
haritadala29-May-04 23:05 
GeneralRe: Creating simple text editor using CView as base Pin
Pete Goodsall30-May-04 2:23
Pete Goodsall30-May-04 2:23 
GeneralRe: Creating simple text editor using CView as base Pin
haritadala30-May-04 3:35
haritadala30-May-04 3:35 
GeneralSome Questions about CHtmlView Pin
HIai29-May-04 18:21
HIai29-May-04 18:21 
GeneralMFC Container Application Pin
vishalmore29-May-04 17:58
vishalmore29-May-04 17:58 
GeneralHelp needed for CSocket Pin
sumon200229-May-04 17:43
sumon200229-May-04 17:43 
GeneralInitilize the socket Pin
laia30-May-04 8:22
laia30-May-04 8:22 
Questioncheck day of week? Pin
closecall29-May-04 16:25
closecall29-May-04 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.