Print Preview results in empty pages
dschuch
Dresden,Germany
Hy,
i need a report to export images from my database that are displayed in a PageControl.
so i did the following:
frxReport1.PrepareReport();
For I:=1 to MyPageControl.PageCount-1 do
frxReport1.PreviewPages.AddEmptyPage(frxReport1.PreviewPages.Count-1);
For I:=0 to frxReport1.PreviewPages.Count-1 do
frxReport1.PreviewPages.Page.BackPicture.Assign(GetImage(I).Picture.Graphic);
frxReport1.ShowPreparedReport;
//GetImage I is an internal function that gives the image of the given page
so far everything works fine, the preview is correct. i can export it to pdf too but if i print (use the button in the preview), the preview pages are cleared and the printer prints an empty page. any idea why?
daniel.
i need a report to export images from my database that are displayed in a PageControl.
so i did the following:
frxReport1.PrepareReport();
For I:=1 to MyPageControl.PageCount-1 do
frxReport1.PreviewPages.AddEmptyPage(frxReport1.PreviewPages.Count-1);
For I:=0 to frxReport1.PreviewPages.Count-1 do
frxReport1.PreviewPages.Page.BackPicture.Assign(GetImage(I).Picture.Graphic);
frxReport1.ShowPreparedReport;
//GetImage I is an internal function that gives the image of the given page
so far everything works fine, the preview is correct. i can export it to pdf too but if i print (use the button in the preview), the preview pages are cleared and the printer prints an empty page. any idea why?
daniel.