Makro in Pascal

Hi,
I need to Runexport from DB to specific file im my network, no problem.
When i search there is more than one post, so I get a list and export all searchhits, No problem.

BUT I need to name the pdf files to each specific invoice number.
Each post has a specific Invoice number.
Now the export only takes the post that I,m standing at.

When I export it set all document name to the same invoice number followed by _1, _2 .....

oReport:=application.getreport('reportname');
oReport.RunExport('test','\\searchpath\financial\Invoice\'+ToSql(tablename.fieldnamer)+'.pdf',false);

HELP...
Use the IntToStr() function.

oReport := Application.GetReport( 'reportname' + '_' + IntToStr( n ) );for whatever n you want.

BTW, you may have not noticed, but this is a C++ forum.
Well that didn't work.
"Missing variable (zsnull.inttostr)"
"Unkown global procedure or function (inttostr)"

Eh no. my bad.. sorry...
Perhaps you ought to spend some time learning Delphi before you continue.
http://www.delphibasics.co.uk/
http://free.pages.at/bossung/prog/delphi/tutorial/tutorial_multipage.html

The IntToStr() function is found in the SysUtils unit. (Most IDEs are smart enough to automatically include that for you.)

And again, this is a C++ forum, so go find a good Delphi forum, like here. They'll probably humor you better:
http://www.daniweb.com/software-development/pascal-and-delphi/124

Good luck!
Topic archived. No new replies allowed.