9 个解决方案
#1
怎么没人回答呀??
#2
从Excel导入到SQL server中应该不难,但在客户端没有导过,在程序中使用ehlib将显示数据导出到Excel中,可以这样:
if(SaveDialog1->Execute())
{
DBGridEh1->Selection->SelectAll();
SaveDBGridEhToExportFile(__classid(TDBGridEhExportAsXLS),DBGridEh1,SaveDialog1->FileName,False);
DBGridEh1->Selection->Clear();
Application->MessageBox(("文件导出成功!\r\n\r\n"+SaveDialog1->FileName).c_str(),"导出文件",MB_OK+64);
}
if(SaveDialog1->Execute())
{
DBGridEh1->Selection->SelectAll();
SaveDBGridEhToExportFile(__classid(TDBGridEhExportAsXLS),DBGridEh1,SaveDialog1->FileName,False);
DBGridEh1->Selection->Clear();
Application->MessageBox(("文件导出成功!\r\n\r\n"+SaveDialog1->FileName).c_str(),"导出文件",MB_OK+64);
}
#3
谢谢,但程序中错误提示没有SaveDBGridEhToExportFile这个方法,请问这是什么原因??
#4
help me!!
#5
导出为excel我知道了,但从EXCEL导入如何做,特别是在c/s结构中,将客户端的EXCEL数据导入到服务器中,请各位大虾指点!!!
#6
错误提示没有SaveDBGridEhToExportFile这个方法,
怎么解决??
怎么解决??
#7
#include "DBGridEhImpExp.hpp"
#8
正好遇到类似问题:
使用DBGridEh的文件导出功能,但使用以下语句时会出现问题。
SaveDBGridEhToExportFile(TDBGridEhExportAsText,DBGridEh1,"c:\\temp\\file1.txt",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsCsv,DBGridEh1,"c:\temp\file1.csv",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsHTML,DBGridEh1,"c:\temp\file1.htm",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,DBGridEh1,"c:\temp\file1.rtf",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsVCLDBIF,DBGridEh1,"c:\temp\file1.vcl",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsXLS,DBGridEh1,'c:\temp\file1.xls",False);
导出为以上几种文件格式时均会出现以下错误信息:
E2108 Improper use of typedef 'identifier' Compiler error
查找错误帮助是:
Your source file used a typedef symbol where a variable should appear in an expression.
Check for the declaration of the symbol and possible misspellings.
回去试试把__classid(TDBGridEhExportAsXLS)类型转换加上,谢谢楼上的了。
使用DBGridEh的文件导出功能,但使用以下语句时会出现问题。
SaveDBGridEhToExportFile(TDBGridEhExportAsText,DBGridEh1,"c:\\temp\\file1.txt",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsCsv,DBGridEh1,"c:\temp\file1.csv",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsHTML,DBGridEh1,"c:\temp\file1.htm",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,DBGridEh1,"c:\temp\file1.rtf",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsVCLDBIF,DBGridEh1,"c:\temp\file1.vcl",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsXLS,DBGridEh1,'c:\temp\file1.xls",False);
导出为以上几种文件格式时均会出现以下错误信息:
E2108 Improper use of typedef 'identifier' Compiler error
查找错误帮助是:
Your source file used a typedef symbol where a variable should appear in an expression.
Check for the declaration of the symbol and possible misspellings.
回去试试把__classid(TDBGridEhExportAsXLS)类型转换加上,谢谢楼上的了。
#9
问题已经解决,谢谢了。
#1
怎么没人回答呀??
#2
从Excel导入到SQL server中应该不难,但在客户端没有导过,在程序中使用ehlib将显示数据导出到Excel中,可以这样:
if(SaveDialog1->Execute())
{
DBGridEh1->Selection->SelectAll();
SaveDBGridEhToExportFile(__classid(TDBGridEhExportAsXLS),DBGridEh1,SaveDialog1->FileName,False);
DBGridEh1->Selection->Clear();
Application->MessageBox(("文件导出成功!\r\n\r\n"+SaveDialog1->FileName).c_str(),"导出文件",MB_OK+64);
}
if(SaveDialog1->Execute())
{
DBGridEh1->Selection->SelectAll();
SaveDBGridEhToExportFile(__classid(TDBGridEhExportAsXLS),DBGridEh1,SaveDialog1->FileName,False);
DBGridEh1->Selection->Clear();
Application->MessageBox(("文件导出成功!\r\n\r\n"+SaveDialog1->FileName).c_str(),"导出文件",MB_OK+64);
}
#3
谢谢,但程序中错误提示没有SaveDBGridEhToExportFile这个方法,请问这是什么原因??
#4
help me!!
#5
导出为excel我知道了,但从EXCEL导入如何做,特别是在c/s结构中,将客户端的EXCEL数据导入到服务器中,请各位大虾指点!!!
#6
错误提示没有SaveDBGridEhToExportFile这个方法,
怎么解决??
怎么解决??
#7
#include "DBGridEhImpExp.hpp"
#8
正好遇到类似问题:
使用DBGridEh的文件导出功能,但使用以下语句时会出现问题。
SaveDBGridEhToExportFile(TDBGridEhExportAsText,DBGridEh1,"c:\\temp\\file1.txt",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsCsv,DBGridEh1,"c:\temp\file1.csv",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsHTML,DBGridEh1,"c:\temp\file1.htm",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,DBGridEh1,"c:\temp\file1.rtf",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsVCLDBIF,DBGridEh1,"c:\temp\file1.vcl",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsXLS,DBGridEh1,'c:\temp\file1.xls",False);
导出为以上几种文件格式时均会出现以下错误信息:
E2108 Improper use of typedef 'identifier' Compiler error
查找错误帮助是:
Your source file used a typedef symbol where a variable should appear in an expression.
Check for the declaration of the symbol and possible misspellings.
回去试试把__classid(TDBGridEhExportAsXLS)类型转换加上,谢谢楼上的了。
使用DBGridEh的文件导出功能,但使用以下语句时会出现问题。
SaveDBGridEhToExportFile(TDBGridEhExportAsText,DBGridEh1,"c:\\temp\\file1.txt",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsCsv,DBGridEh1,"c:\temp\file1.csv",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsHTML,DBGridEh1,"c:\temp\file1.htm",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,DBGridEh1,"c:\temp\file1.rtf",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsVCLDBIF,DBGridEh1,"c:\temp\file1.vcl",False);
SaveDBGridEhToExportFile(TDBGridEhExportAsXLS,DBGridEh1,'c:\temp\file1.xls",False);
导出为以上几种文件格式时均会出现以下错误信息:
E2108 Improper use of typedef 'identifier' Compiler error
查找错误帮助是:
Your source file used a typedef symbol where a variable should appear in an expression.
Check for the declaration of the symbol and possible misspellings.
回去试试把__classid(TDBGridEhExportAsXLS)类型转换加上,谢谢楼上的了。
#9
问题已经解决,谢谢了。