Solved

Error: PrintStartReport

  • 20 May 2024
  • 1 reply
  • 9 views

When a ‘print’ button is pressed, an error message pops up as shown below:

 


Code under the procedure as shown:

 

PR_Verify_PDF_Printer;

PrintStartReport(sp_WeeklyReport_Cover_Title);

! Print cover
PrintPage("r::Weekly Report Cover");

! Print summary
PrintPage("r::Weekly Report Summary");

for i_WeeklyReport_PrintableMonth do

    ! Set month
    ep_WeeklyReport_Month := i_WeeklyReport_PrintableMonth;

    ! Generate report
    pr_WeeklyReport_GenerateReport;

    for i_Report_PrintableAffiliate do

        ! Set affiliate
        ep_WeeklyReport_Affiliate := i_Report_PrintableAffiliate;

        ! Generate Affiliate report
        pr_WeeklyReport_GenerateAffiliateReport;

        ! Print page
        PrintPage("r::Weekly Report");

        if p_WeeklyReport_PrintExtraGraphs then
            ! Print page 2
            PrintPage("r::Weekly Report 2");
        endif;

    endfor;

    ! Print monthly totals page
    PrintPage("r::Weekly Report Month Total");

    pr_WeeklyReport_ClearTotals;

endfor;

PrintEndReport();
 

What might be causing it? How does one resolve this issue?

 

icon

Best answer by gabiservidone 5 June 2024, 19:49

View original

1 reply

Userlevel 5
Badge +6

Hi @NajwaFarhana, can you debug this procedure to know which line this error happens? But it seems you are trying to use a PDF printer you don’t have installed. Go to File > Print Setup and check the settings there.

 

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator