TO XXXYYUUUUUUUUu (I don't understand)): I use the F1Book, C Builder version number with itself in C Builder, 5.0 (Build 12.34), click F1Book Help display Formula One 3.0 (except this I don't know how to see my version number) I have passed the source code of my program. If you have no problem, it is estimated that you can tell me where to get high versions of Formula One.
The purpose of the program is to display the contents of the general DBGRID to F1Book, so that the data is exported. Enter data (unless it is a bulk input) I still use DBGRID, but DBGRID does not easily implement block replication, print, export function.
First create a form, drag on the three controls on DBGRID, just connect the previous database, I use SQL Server, after the display is successful, put F1Book1 on the screen, plus a button, click the button. The corresponding code is as follows: (function is to display the content of the DBGRID to F1Book1, the writing of the code is versatile)
Ansistring TMPFD, TMPNAME; INT I, J, TOTALNUM, TOTALCOL, KK;
Totalnum = dbgrid1-> datasource-> dataset-> recordcount; // Total number of records
KK = 0; for (i = 0; i
F1Book1-> ClearRange (1, 1, f1book1-> maxrow, f1book1-> maxcol, 1);
For (i = 1; i <= Totalcol; i ) {f1book1-> coltext [i] = char (i 64);
// Output title KK = 0; for (i = 0; i
// Setting effect screen-> cursor = crdefault; f1book1-> colorden [1] = false; f1book1-> rowhidden [1] = false; f1book1-> setfont ('Song Body', 9, False, False, False, False, RGB (0,0,0), false, false; f1book1-> setColwidthauto (1, 1, f1book1-> maxrow, f1book1-> maxcol, true); // maximum width is not more than 6000 for (i = 0; i