Why i can not Print with Print Function

IcebergDelphiIcebergDelphi Villaflores, Chiapas, Mexico
edited 6:49PM in FastReport 3.0
Hi EveryBody i,m traying to print a report but when the DialogBox print apears and click on print nothing happens.

I wrote something like this:

If MyReporteFactura.print=False Then /// If The user Click on cancel Nothing should Happend
Proceso:=0
else/// else if user click on print my printer should print but my printer is sleeping real good
QryFacturas.Close;
QryFacturas.Parameters.ParamByName('IdFactParam').Value:=FacturacionIdfact.Value;
QryFacturas.Open;
Proceso:=1;
end

I'm using fastReport 3.10

Pd: I wanted use the preview of fast report but if the user click on close , idont know how to put in my code that this action is a modalresult:=Abort, so that i decided to use the print function.

tanx Amigos.

From Villaflores; Chiapas Mexico.
Icebergdelphi ;)

Comments

  • IcebergDelphiIcebergDelphi Villaflores, Chiapas, Mexico
    edited 6:49PM
    Hi amigos i found a solution to my troubles i just wrote this in my code:


    If MyReporteFactura.print=False Then /// If The user Click on cancel Nothing should Happend
    Proceso:=0
    else/// else if user click on print my printer should print but my printer is sleeping real good
    else
    MyReporteFactura.PrepareReport();
    MyReporteFactura.Print;
    Proceso:=1;
    end


    The prepareReport() Put My troubles out of my way.

    Tanx
    God Bless you all

    from Villaflores, chiapas mexico
    Icebergdelphi

Leave a Comment