 |
|
 |
hi,
here how can add column in existing table that also contains some record.
thanks.
|
|
|
|
 |
|
 |
hi
unfortunately you didn't put source file and also explaning the code completely.
thanks alot for this article
|
|
|
|
 |
|
 |
Hello.
First of all, I'm starting to check the tool, I found it very good.
I like very much the distribution of info in the scrren, but I would like to make a different field selection for the columns between central column view and the bottom field view; I would like to have all the info in the bottom and much more less information in the "central" column view. Also, I would like to be able to reorder columns on my own, like it is possible in MS Project, for example.
Any help on that ? Would that be good improvements proposal if it is not possible in current version?
Best wishes,
Roger
|
|
|
|
 |
|
 |
How to control the column width?
|
|
|
|
 |
|
 |
Hello,
Instead of using a Date data type for a column definition in the Excel table, I want to use a custom data type to format the DATE the way I want. If the Regional Settings are set to the date format: dd/mm/yyyy, I want the Excel to show a format mm/dd/yyyy, whatever the Regional settings are.
Is there a way to set a custom data type for a column when creating an Excel table?
Thanks
|
|
|
|
 |
|
 |
Good Work!
Thanks and Regards,
prasad
|
|
|
|
 |
|
 |
I need to input long text string into the data field. And I specified the field size as in :
sSql = "CREATE TABLE demo (Name TEXT(1024),Age NUMBER)";
But when the application runs, database exception occurs.
"Database error: Size of field 'Name' is too long."
It is OK when I put 256 or less.
How can I create a table with field longer than 256 bytes?
Thanks,
|
|
|
|
 |
|
 |
I'm experiencing the same problem :(
|
|
|
|
 |
|
 |
Hi
Can anybody help me in using this code to write into multiple worksheets of the same excel file. for example DataTable1 to Sheet1 and DataTable2 to Sheet2.
Thanks in advance
Ganapatsa
|
|
|
|
 |
|
 |
Hi,
if you are able to use .NET Framework then you can easily write multiple DataTables to multiple sheets with this Excel C# / VB.NET library.
Here is a sample Excel C# code how to export DataSet to Excel:
var ef = new ExcelFile();
foreach (DataTable dataTable in dataSet.Tables)
ef.Worksheets.Add(dataTable.TableName).InsertDataTable(dataTable, 0, 0, true);
ef.SaveXls(dataSet.DataSetName + ".xls");
|
|
|
|
 |
|
 |
Great,
Thank you!
Ignacio
|
|
|
|
 |
|
 |
Hello,
I have some rather unique constraints here... I have'export to xls' functionality, which is working (thank you everyone who has posted help online for C++ and ADO)
my issue is, I also need to 'view the inserts in real time' in the excel sheet. The 'Operator' presses a button (transmitted serially and parsed in a CPP app) and wants to 'see' the entry in the open Excel sheet immediately.
Of course, doing this now I get the eror "cannot expand named range".
If anyone could help that would be awesome.
Chris
|
|
|
|
 |
|
 |
Hello!
I tried to create an access file using the same principle i.e., by changing
CString sDriver = "MICROSOFT EXCEL DRIVER (*.XLS)"; to
CString sDriver = "MICROSOFT ACCESS DRIVER (*.MDB)";
and
CString sExcelFile = "c:\\demo.xls"; to
CString sExcelFile = "c:\\demo.mdb";
without changing other things.
I was unsuccessful to create the file! Is there any other requirement to create an access file?
Thanks.
-- modified at 0:05 Friday 29th December, 2006
|
|
|
|
 |
|
 |
<script runat="server"></script>
<script language="VBScript"></script>
<%%>
Three script are there.which one first,second and last execute please tell me
sambath kumar.E
|
|
|
|
 |
|
 |
I want the code for insert into Ms project
no command
|
|
|
|
 |
|
 |
Using INSERT INTO We can give only direct values to the columns.. But if we want to give values using variable names means what to do..? I tried a lot. but its not working.
sSql = "INSERT INTO demo (NET_NAME,DUT_PIN,TESTER_CHANNEL,TOLERANCE,LAYER_NO,TRACK_WIDTH) VALUES ('DGND','SITE.Y17','121.CH14',43,3,2)";
database.ExecuteSQL(sSql);
In this, i have to pass the variable name for VALUES instead of giving as 'DGND' and so on.. Because i knew the values for the corresponding columns only during the run time.
Sangeetha.
|
|
|
|
 |
|
 |
I got an error in excel
[Microsoft][ODBC Excel Driver] the connection for viewing your linked Microsoft excel Worksheet was lost
what should i do?
|
|
|
|
 |
|
 |
may I insert a string into a specific cell, f.e. A1?
juergen
|
|
|
|
 |
|
 |
can you write the include line please.
include(sql.h) // or what ?
|
|
|
|
 |
|
 |
can you write the include line please.
include(s)
|
|
|
|
 |
|
 |
so simple so good !
Thank You
-- modified at 10:04 Wednesday 31st August, 2005
|
|
|
|
 |
|
 |
thanku it was good help to me
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
 |
|
 |
in my project i want to add some more tables columnwise plz can u gudie me..
|
|
|
|
 |
|
 |
You can modify the code to insert more than one table in the same excel file
<font color="#000090">void </font>CtestDlg::OnBnClickedCreateExcel()
{
CDatabase database;
CString sDriver = "MICROSOFT EXCEL DRIVER (*.XLS)"; <font color="#008000"> // exactly the same name as in the ODBC-Manager</font>
CString sExcelFile = "c:\\demo.xls"; <font color="#008000"> // Filename and path for the file to be created</font>
CString sSql;
TRY
{
<font color="#008000"> // Build the creation string for access without DSN </font>
sSql.Format("DRIVER={%s};DSN='';FIRSTROWHASNAMES=1;READONLY=FALSE;CREATE_DB=\"%s\";DBQ=%s",
sDriver, sExcelFile, sExcelFile);
<font color="#008000"> // Create the database (i.e. Excel sheet)</font>
if( database.OpenEx(sSql,CDatabase::noOdbcDialog) )
{
<font color="#008000"> // Create table structure</font>
sSql = "CREATE TABLE demo (Name TEXT,Age NUMBER)";
database.ExecuteSQL(sSql);
<font color="#008000"> // Insert data</font>
sSql = "INSERT INTO demo (Name,Age) VALUES ('Bruno Brutalinsky',45)";
database.ExecuteSQL(sSql);
sSql = "INSERT INTO demo (Name,Age) VALUES ('Fritz Pappenheimer',30)";
database.ExecuteSQL(sSql);
sSql = "INSERT INTO demo (Name,Age) VALUES ('Hella Wahnsinn',28)";
database.ExecuteSQL(sSql);
<font color="#008000"> // Create new table</font>
sSql = "CREATE TABLE NewTable (Job TEXT,Salary NUMBER)";
database.ExecuteSQL(sSql);
sSql = "INSERT INTO NewTable (Job , Salary) VALUES ('Secretary',45)";
database.ExecuteSQL(sSql);
sSql = "INSERT INTO NewTable (Job , Salary) VALUES ('Programmer',45)";
database.ExecuteSQL(sSql);
sSql = "INSERT INTO NewTable (Job , Salary) VALUES ('Manager',45)";
database.ExecuteSQL(sSql);
}
<font color="#008000"> // Close database</font>
database.Close();
}
CATCH_ALL(e)
{
TRACE1("Driver not installed: %s",sDriver);
}
END_CATCH_ALL;
}
I hope this is helpful!
|
|
|
|
 |
|
 |
Hi,
I want to change the font style i.e. headers with bold and change some colors in the data tables (columns or rows) depending on the value. I dont know whether this can be done or not. Please guide me as i have not used excel before. I have to use MFC and i have excel 2003. Looking forward to a response. Thanks a lot in advance.
Regards,
Himnanshu
|
|
|
|
 |