I cannot Print for DotMatix with FR3

edited 1:49PM in FastReport 3.0
Delphi 5 SP1, FastReport V3 demo,

frxReport1.PrepareReport;
frxReport1.Export(frxDotMatrixExport);
OR
frxDotMatrixExport1.Report := frxReport1;
frxReport1.DotMatrixReport := True;
frxDotMatrixExport1.Report.PrepareReport;
frxDotMatrixExport1.Report.Print;

when I push Print button, I get an accsesss violation with both of codes.
How can I do?
and When I buy FastReport V3?

Comments

  • edited 1:49PM
    If frxReport1 contains a dot-matrix report (not a regular report!) it can be printed to dmp printer using frxReport1.Print method.

    You can buy FR3 at the end of this month.
  • edited 1:49PM
    I couldn't too... I tried this code:
    Relatorio.PrepareReport;
    
    TXT := TfrxDotMatrixExport.Create( Self );
    TXT.ShowDialog := True;
    TXT.Report := Relatorio;
    Relatorio.DotMatrixReport := True;
    Relatorio.ShowPreparedReport;
    

    The preview is ok, but when I push print button, nothing is printed...

    PS: I tried to print to a file, and the file is generated with only one char...

    What's wrong?

    Thank you very much!
  • edited 1:49PM
    You cannot print a regular report in dot-matrix mode. Your report should be designed for dot-matrix. To do this, go File|New.. and select "Dot-matrix report wizard" or "dot-matrix report".
  • edited 1:49PM
    hmmmmm... Ok... Thank you, Alex!

    regards.

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.