Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Costed Bill of Materials report title

Posted on by 260

My version: NA 3.70B (4.0 SP3)

The Report for Costed Bill of Materials, if saved to .pdf or generated to an email, will only be titled "Costed Bill of Materials". Can I add the Item No. to the title through automation or customization?

This would save a lot of human copy/paste and human error (when the copy/paste is done incorrectly) when generating many reports for different Item No.s in batch.

*This post is locked for comments

  • estm8ben Profile Picture
    estm8ben 260 on at
    RE: Costed Bill of Materials report title

    Thanks for this!

  • Verified answer
    Roberto Stefanetti Profile Picture
    Roberto Stefanetti 12,998 on at
    RE: Costed Bill of Materials report title

    hi,

    you cau use bullzip PDF automation class (a free component) on NAV 4, 5 ..

    Bullzip Integration

    you can print a report on bullzip PDF Printer using a lot of options; you need a litle custom to create custom filenames, passing parameters etc.

    an example oh this:

    IF ISCLEAR(BullZipPDF) THEN

     CREATE(BullZipPDF);

    ReportID := ReportNo; // REPORT::"Customer Listing";

    FileDirectory := 'C:\SE_Demo\Temp';

    Object.GET(Object.Type::Report,'',ReportID);

    FileName := SaveFileName;

    BullZipPDF.Init;

    BullZipPDF.LoadSettings;

    RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE);

    BullZipPDF.SetValue('Output',FileName);

    BullZipPDF.SetValue('Showsettings', 'never');

    BullZipPDF.SetValue('ShowPDF', 'no');

    BullZipPDF.SetValue('ShowProgress', 'no');

    BullZipPDF.SetValue('ShowProgressFinished', 'no');

    BullZipPDF.SetValue('SuppressErrors', 'yes');

    BullZipPDF.SetValue('ConfirmOverwrite', 'no');

    BullZipPDF.WriteSettings(TRUE);

    REPORT.RUNMODAL(ReportNo,FALSE,FALSE,SalesHeader);

    TimeOut := 0;

    WHILE EXISTS(RunOnceFile) AND (TimeOut < 10) DO BEGIN

       SLEEP(1000);

       TimeOut := TimeOut + 1;

    END;

    Mibuso Link

    www.mibuso.com/.../viewtopic.php

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans