Background image Printing and exporting

General TRichView support forum. Please post your questions here
Post Reply
Jim
Posts: 3
Joined: Tue Aug 20, 2013 2:07 pm
Location: Belgium
Contact:

Background image Printing and exporting

Post by Jim »

I'm using a background image in a document.
I am using PNG,JPEG or BMP files.
All 3 images op displayed fine on the ScaleRV.

When I print the document when using a png image, the background is not printed (With BMP of JPG it's fine)

When exporting to Docx, I don't have any backgrounds.
I use the '.SaveDocX' command

This is the complete routine to set the background:

Code: Select all

Procedure Getbackgroundimmage;
var
path, Ext : string;
Pic : TBitmap;
Png : TPNGImage;
JPG : TJpegImage;
begin

path := parameters.curdir + 'Templates\'+ frmTemplatebuilder.txtbtnBGImage.text;
ext := uppercase(ExtractFileExt(path));

if not fileexists(path) then exit;

Pic := TBitmap.Create;
if ext = '.PNG' then
begin
Png := TPngImage.Create;
Png.LoadFromFile(path);
Pic.Assign(png);
end
else if ext = '.JPG' then
begin
JPG := TJPEGImage.Create;
JPG.LoadFromFile(path);
Pic.Assign(JPG);
end
else if ext = '.BMP' then
Pic.LoadFromFile(path)
else
exit;
Sergey Tkachenko
Site Admin
Posts: 17309
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TRichView cannot save a background to DocX.

As for printing, please save a document with non-printing background as RVF and send it to me to richviewgmailcom
Post Reply