printing problem to an IP network printer

Hello,

I have the following problem. When I print to a network (with IP via Print
server)printer (hp LaserJet 1300 PS) from my application , the pages that
are print are not right. Instead of my reporting data, it contains
characters & numbers unknown to me. It is like, the driver of the printer
send radom characters. The code that I use is the following

FrmPreview := TFrmPreview.Create(Application);
frPrint1.Preview := FrmPreview.frPreview1;
frPrint1.ShowReport;
frmPreview.ShowModal;

When I save the report from my application and I open from another
application using the following code

PrevFrm := TFrmPreview.Create(Application);
FrReport1.Preview := PrevFrm.frPreview1;
frReport1.LoadPreparedReport(Filename);
Screen.Cursor := crDefault;
PrevFrm.Visible := True;
frReport1.ShowPreparedReport;

I do not have the problem. The report is OK.
Have anyone any idea why is that happens ?

Thanks in advance

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.