TransferSpreadsheet - how to call this function

T

Tomek

I've tried
DoCmd.TransferSpreadsheet( 1, 8, "aaa" , "d:\\ddd.xls", false, NULL, true);
but it fails

GREAT THANKS for help

T.



_Application app; // app is the Excel _Application object
app.CreateDispatch("Access.Application");
app.SetVisible(TRUE);
app.OpenCurrentDatabase("d:\\rai.bis\\mdb\\dane.mdb",true);
LPDISPATCH lDoCommand = app.GetDoCmd ();
IDoCmd DoCmd (lDoCommand);

DoCmd.TransferSpreadsheet( 1, 8, "aaa" , "d:\\ddd.xls", false, NULL,
true);

/*
void IDoCmd::TransferSpreadsheet(long TransferType, long SpreadsheetType,
const VARIANT& TableName, const VARIANT& FileName, const VARIANT&
HasFieldNames, const VARIANT& Range, const VARIANT& UseOA)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
InvokeHelper(0x411, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
TransferType, SpreadsheetType, &TableName, &FileName, &HasFieldNames,
&Range, &UseOA);
}
*/
 
G

Guillaume

Not only is that a platform and application-specific query, but
it's not even C!

Can you read?

COMP.LANG.C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top