web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAVType Option is missing

(0) ShareShare
ReportReport
Posted on by

Hello Team,

While trying to run RTC report  with SAVEASPDF function, I get this error as "  The NAVType option is missing " .

Running the RTC report on Sales quote page, I got this message.

Hi Neville,

In my previous queries you gave me solution similar  for running the RTC ( SAVEASPDF), Can you  look into this piece of code as where I am going wrong.Thanks in advance

Codeunit:

Salesheader.GET("No.");

Salesheader.SETRECFILTER;

QuoteReport.SETTABLEVIEW(Salesheader);

QuoteReport.SAVEASPDF('D:\temp:\' + '.pdf');

Please suggest.

Thanks

Rishi Raj

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Just after this post, I tried with SETCURRENTKEY in place of GET and its working fine.

    Now the issue is Report is not getting updated with respect to Quote no. and sales Line No.

    I tried with few option but not able to resolve...can anyone suggest.

    My code

    SalesHeader.SETCURRENTKEY("Document Type");

    SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type"::Quote);

    QuoteReport.SETTABLEVIEW(SalesHeader);

    SalesHeader.SETRECFILTER;

    QuoteReport.SAVEASPDF('D:\temp\'  + '.pdf');

    Thank you

  • Verified answer
    Neville Foyn Profile Picture
    4,320 on at

    Hi

    Try changing it to this:

    SalesHeader.RESET;

    SalesHeader.SETCURRENTKEY("Document Type");

    SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type"::Quote);

    SalesHeader.FINDSET;

    QuoteReport.SETTABLEVIEW(SalesHeader);

    QuoteReport.SAVEASPDF('D:\temp\'  + 'Filename' +  '.pdf');

    Cheers

    Nev

  • Community Member Profile Picture
    on at

    Hello Nev,

    Thanks for your reply

    With few modification to above codeunit...am back on track..working fine.

    Many thanks Nev

    Cheers

    Rishi

  • Neville Foyn Profile Picture
    4,320 on at

    Happy to help

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans