HTML Put in Wrong Place

I am trying to schedule reports, and to do that I'm creating a Delphi
console app to print reports, which
can be called from the scheduler. I have pdf reports working, but the html
reports always end up in
the directory where the executable is run from. I've tried the following:

htmlExporter.DefaultPath = blank htmlExporter.Filename = full path and file
name
htmlExporter.DefaultPath = full path htmlExporter.Filename = file name
htmlExporter.DefaultPath = full path htmlExporter.Filename = full path and
file name

Example full path = d:\projects\test
Example file name = report.html
Example full path and file name = d:\projects\test\report.html

Anyone have any idea what I am doing wrong?

-- Larry Maturo

Comments

  • edited 6:48PM
    Someone suggested that I might have the source code, and it turns out I did. So, the answer is:

    htmlExporter.AbsLinks := true

    AbsLinks defults to false, which means ignore the path information the user gave you.

    So the correct sequence is:

    htmlExporter.AbsLinks := true;
    htmlExporter.DefaultPath = full path;
    htmlExporter.Filename = full path and file name;

Leave a Comment