Print Preview results in empty pages

dschuchdschuch Dresden,Germany
edited July 2009 in FastReport 4.0
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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.