Why is not possible to save/export some reports?

AtreiuAtreiu Member Posts: 51
Hi everybody...
I've tried to search for the answer but I've not been able to find it, till now.

I'm a newbie in Navision and the question is:

my navision installation is "standard"...
I tested the program version 2009 using two reports with the "Cronus" db:
- Sales Invoice (in the Object designer is "206 - Sales Invoice")
- 12120 - VAT register print

When I click the "preview" button for the first report, there is no "saving/exporting button", while when I see the preview of the second report, that button is in his place on the top bar. The second one is specifically for printing? I would like to understand how can I make this button available for every report.
I also ignore how and where the top bar I see in report is managed...

thank you in advance for help (and excuse my lack of good english and good navision ^___^)

Answers

  • gedasgedas Member Posts: 87
    Hi

    report works in the same ways as:
    You can't print report from classic client too, if you preview it.

    This is because sales invoice printed copies are calculated and stored into invoice. You can see field "No. printed" in invoice card. So if you previewed invoice then printed number will not increase and if printed then number increase. This is accounting theory.

    Technically somewhere in report code is statement:
    IF Curreport.PREVIEW...

    And NAV doesn't allow to print/save copy of invoice from preview.
    GB
  • AtreiuAtreiu Member Posts: 51
    Thank you for your answer...


    I've found this:
    IF LogInteraction THEN
      IF NOT CurrReport.PREVIEW THEN BEGIN
        IF "Bill-to Contact No." <> '' THEN
          SegManagement.LogDocument(
            4,"No.",0,0,DATABASE::Contact,"Bill-to Contact No.","Salesperson Code",
            "Campaign No.","Posting Description",'')
        ELSE
          SegManagement.LogDocument(
            4,"No.",0,0,DATABASE::Customer,"Bill-to Customer No.","Salesperson Code",
            "Campaign No.","Posting Description",'');
      END;
    

    How can I change it to make the report print?
    Will it be enough?
  • ara3nara3n Member Posts: 9,256
    If the customer is not using interaction, you can comment out the code
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • AtreiuAtreiu Member Posts: 51
    Ok, I simply tried to cancel the lines I've posted in the previous post...
    But both in the classic client report and in the new layout report doesn't allow me to print.
    In particular I would like to have the "floppy icon" in the new layout report... just like the normal report in reporting services (and some navision report...)

    thank you in advance!
  • ara3nara3n Member Posts: 9,256
    Please do the following.
    //MOD01 Start
    {
    IF LogInteraction THEN
      IF NOT CurrReport.PREVIEW THEN BEGIN
        IF "Bill-to Contact No." <> '' THEN
          SegManagement.LogDocument(
            4,"No.",0,0,DATABASE::Contact,"Bill-to Contact No.","Salesperson Code",
            "Campaign No.","Posting Description",'')
        ELSE
          SegManagement.LogDocument(
            4,"No.",0,0,DATABASE::Customer,"Bill-to Customer No.","Salesperson Code",
            "Campaign No.","Posting Description",'');
      END;
    }
    //MOD01 End
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • AtreiuAtreiu Member Posts: 51
    IT WORKS!!

    Thank you very much

    =D>
  • ara3nara3n Member Posts: 9,256
    you are welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.