Choosing printer on Report? (Bug?)

ccorreiaccorreia Member Posts: 36
Hello,

I'm having an problem.

I have this code on the end of a report:
If Print then
Run.Report("Report ID",FALSE,FALSE,Record);

(The print is TRUE)

The problem is that I want to call the new report and choose the printer, and what happens is that the window to choose the printer don't appers and starts to print in my default printer.

Someone knows what can be wrong?

I'm running an 4.0SP3 database.

Another thing, if I call the report thought the Object Designer I can choose the printer...

Comments

  • tAKiTheRtAKiTheR Member Posts: 1
    Hi!
    I'm not sure but I think you should specify the printer in table 78 "printer selection"..
  • DaveTDaveT Member Posts: 1,039
    Hi,

    Look at the help on the REPORT.RUN command - you are turning off the request form.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • ccorreiaccorreia Member Posts: 36
    DaveT wrote:
    Hi,

    Look at the help on the REPORT.RUN command - you are turning off the request form.

    Even with the TRUE in request form, it prints in the default printer...
  • DaveTDaveT Member Posts: 1,039
    tAKiTheR wrote:
    Hi!
    I'm not sure but I think you should specify the printer in table 78 "printer selection"..

    Hi,

    Have you checked this as well? Does it happen for different report IDs?
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • jbrajbra Member Posts: 32
    I am experiencing a similar situation and there does not seem to be resolution here.

    For:
    REPORT.RUN(ReportSelection."Report ID",True,TRUE,RentalInvHeader);

    The Request form is shown then the Printer Selection box


    For:
    REPORT.RUN(ReportSelection."Report ID",FALSE,False,RentalInvHeader);

    The default printer is used


    For:
    REPORT.RUN(ReportSelection."Report ID",FALSE,True,RentalInvHeader);

    The default printer is used but I’d expect NO request form but YES the printer selection box.

    I'd really like NO request form and YES to printer selection.

    If the report is run from Ojbect manager you get the request form and the printer selction dialog. We are running 4.0 objects on the 2009 executables. (object upgrade planned for summer 2010.)

    Ideas?
Sign In or Register to comment.