printer window disappear in background
wic
Member Posts: 96
hi all, when I call a report which prints other reports, the printer request window disappear in background. Can someone help me with that?
Print Button:
OnPush()
REPORT.RUNMODAL(81400,TRUE,FALSE,SalesInvHeader);
Here, I send the actual record (filter) to the report 81400
R81400
OnPreDataItem()
CurrReport.BREAK;
OnPreReport()
CASE Big conditions to determine which report to print OF
1: REPORT.RUNMODAL(82000,FALSE,FALSE,MyRec);
2: REPORT.RUNMODAL(82010,FALSE,FALSE,MyRec);
END;
After that, the Windows XP printe request window disappear in background. To print, I've to minimize Navision then choose printer/OK.
:twisted:
Print Button:
OnPush()
REPORT.RUNMODAL(81400,TRUE,FALSE,SalesInvHeader);
Here, I send the actual record (filter) to the report 81400
R81400
OnPreDataItem()
CurrReport.BREAK;
OnPreReport()
CASE Big conditions to determine which report to print OF
1: REPORT.RUNMODAL(82000,FALSE,FALSE,MyRec);
2: REPORT.RUNMODAL(82010,FALSE,FALSE,MyRec);
END;
After that, the Windows XP printe request window disappear in background. To print, I've to minimize Navision then choose printer/OK.
:twisted:
#### Only one can survive ######
0
Comments
-
Hello,
We have a client who does a lot of their own development, who encountered this issue. As yet we do not have a resolution, other than not to try to run reports from within reports. Because you are calling a report, and then calling another report, the second report pushes the first aside.
Generally this is not a good idea, you should instead write a function on a table or form, or a codeunit that controls both of them instead. I'm sure that people will correct me if I am wrong, but I cannot think of an example in standard Navision where a report calls another one.Edward Bloomfield
Lead Consultant
Theta0 -
like a lot of medicinal product, I've found luckily a solution about this:on the calling object (OnPush) you add Message('well done'); after the report.runmodal... and it works!
EUREKA!
my code:
OnPush()
CurrForm.SETSELECTIONFILTER(SalesShptHeader);
REPORT.RUNMODAL(50000,TRUE,FALSE,SalesShptHeader);
MESSAGE(txt001);
R50000
CASE mega condiditon OF
1: REPORT.RUNMODAL(50500,FALSE,FALSE,SalesShptHeader);
END;#### Only one can survive ######0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions