Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print Report to Network Path

edited October 2015 in General
Hi at all,
in our Software we print Reports to a JPEG-File like this:

if ElementExists(dtJPEG) then
begin
p.DeviceType := dtJPEG;
p.TextFileName := sOutputPath;
p.Print;
end;

everything works fine, if we print to local files.
Now we tried to save the Report to a Network path then the Report
doesn't print..

As Value for sOutputPath:
1. Try: T:\
2. Try: \\*SERVERNAME*\Temp
3. Try: \\*IP-ADDRESS*\Temp

But it doesnt work.

We use Delphi XE2 and Report Builder version: 14.08 Build 48.

Greetings from Germany.

Comments

  • edited October 2015
    Hi Nick,

    The image device simply calls the Delphi VCL routine TGraphic.SaveToFile
    when exporting images to file.

    This is the equivalent of creating a file stream and writing the image
    data to that stream. (See the TGraphic.SaveToFile routine in the Delphi
    source).

    As a test, you can try creating a file stream in a sample application
    using the network directory you mention and see if you are able to
    successfully write to that stream without errors.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.