Hello, I am usin BCB6 and trying to print out a StringGrid, I have found ton of examples for delphi but none for BCB, I have tried to convert the delphi code but got stuck on what
[CODE]uses
Printers;
procedure PrintGrid(sGrid: TStringGrid; sTitle: string);
var
[/CODE]
all that stuff is, So if you could help me out I would apprate it alot thanks
squills
Comments
For:
[code]uses Printers;[/code]
In C++ that would look like:
[code]#include [/code]
As for:
[code]procedure PrintGrid(sGrid: TStringGrid; sTitle: string);[/code]
It's a function declaration. In C++ that would be something like:
[code]void PrintGrid(TStringGrid *sGrid,AnsiString sTitle)[/code]
As for the Printer itself, now, I haven't tried myself, but my guess is that you could do something like this:
[code]TPrinter *Printer = new TPrinter();[/code]
Hope this helps.
thanks
squills