PDF in windows service
Hi,
I am writing a report in the PDF format to a stream.
if Report <> nil then
begin
PDFDevice := TppPDFDevice.Create(nil);
try
Report.DeviceType:= dtPdf;
PDFDevice.PDFSettings := Report.PDFSettings;
PDFDevice.Publisher := Report.Publisher;
PDFDevice.OutputStream := aStream;
Report.PrintToDevices;
finally
PDFDevice.Free;
end;
end;
I am finding that when I run my code in an exe it "looks" different than
when run in a window service. I am in the unfortunate position that I must
make them match.
I find that the text in memos scales just a little bit bigger in the
service. Also images that are stored in the dfm are scaled larger in the
service. I'll send an attachment to illustrate.
Are there resources that RB looks for that might not be available in the
windows service?
VTY,
Scott.
(RB 11.06, Delphi 2010, Windows 7).
I am writing a report in the PDF format to a stream.
if Report <> nil then
begin
PDFDevice := TppPDFDevice.Create(nil);
try
Report.DeviceType:= dtPdf;
PDFDevice.PDFSettings := Report.PDFSettings;
PDFDevice.Publisher := Report.Publisher;
PDFDevice.OutputStream := aStream;
Report.PrintToDevices;
finally
PDFDevice.Free;
end;
end;
I am finding that when I run my code in an exe it "looks" different than
when run in a window service. I am in the unfortunate position that I must
make them match.
I find that the text in memos scales just a little bit bigger in the
service. Also images that are stored in the dfm are scaled larger in the
service. I'll send an attachment to illustrate.
Are there resources that RB looks for that might not be available in the
windows service?
VTY,
Scott.
(RB 11.06, Delphi 2010, Windows 7).
This discussion has been closed.
Comments
once it is found.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com