Fast way to insert data from database

G

gh

I wrote a VB program that retrive data from SQL server to make a excel
report. The report has some static text, such as report header, report
footer, etc. Besides I need to set the font size of certains columns,
therefore, I cannot directly use the ADO recordset directly.

To make the excel report, I need to add the data cell by cell using
WorkSheet.Cells() method, it works but its performance is slow.

Is there any way for me to inserting the data from database with good
performace?
 
D

DNF Karran

Perhaps have an intermediate stage in the process and get the data usin
ODBC in a new worksheet then pull it across into your target workshee
from there?

Dunca
 
O

onedaywhen

Put the raw data in using ADO (good performance) then open it and do
the formatting etc.
 
Top