Can't print more than 1 copy of the report

AitorEG
Member Posts: 342
Hello everyone.
This issue is getting me mad, because with other reports, I don't have any problem to print more than 1 copy. I use the same estructure and code for this report, but I don't get what I need.
This is my structure:

As you can see, I only have one URL, where I would get an image for using it as the background image for this report, that in this case, it will be a sticker.
I will get the number of copies as RequestPage (copias), and the code is this one:

The issue is that I am using the same approach for other reports, and it works fine.
What could be my problem? Any hint?
PD: I am using NAV2013R2
This issue is getting me mad, because with other reports, I don't have any problem to print more than 1 copy. I use the same estructure and code for this report, but I don't get what I need.
This is my structure:

As you can see, I only have one URL, where I would get an image for using it as the background image for this report, that in this case, it will be a sticker.
I will get the number of copies as RequestPage (copias), and the code is this one:

The issue is that I am using the same approach for other reports, and it works fine.
What could be my problem? Any hint?
PD: I am using NAV2013R2
0
Best Answer
-
That's an RDLC- problem not in C/AL. Did you check the data which transfered to RDLC?
Thanks, yesterday I realise which was the problem. I didn't insert any of the item elements in the layout, so I couldn't make the grouping. So, I inserted the a table item, with the URL, and the loop started to work. I don't want to show the URL on the report, so, I changed the font color to white, and problem solved.
Thanks for all your tips!0
Answers
-
I've forced the number of copies to 6, as shown below, to check if it was a problem of he request page, but the same issue...
I'm thinking about the issue could be found in the layout, but don't understand why.0 -
The first question is: Do you want a copy per item or a copy per itemlist?
second: Do you need to control on which page something is printed?0 -
What properties are set for the integer dataitems?Alastair Farrugia0
-
-
a. Is MaxIteration 0 on both data items? (I know that it should be 0 by default, but just want to be sure.)
b. If you turn on the debugger, in CopyLoop - OnAfterGetRecord, is the value of Number equal to 1 on the first iteration? And is the filter "Number 1..6" ? I know that the answer should be "Yes" but I don't know what else to check.Alastair Farrugia0 -
O.K then you should first remove the PageLoop. RDLC does pagebreaks itsself.
Next:NAV means with copies-> one Original and "copias" additional Copies.
So you should "SETRANGE(Number,1,1+copias)" in the OnPredataItem.
The Setting of PAGENO ist not needed. RDLC has it's own page counter, which you have to manage by yourself.
If you get only the original of your Report then you should leave Number as a Paramter for the RDLC- Report. In the RDLC you should check the grouping, it should be "No_Item" and "Number_Copyloop".
After checked that, you should get a print wich is sorted by by Item."No." and Number.0 -
a. Is MaxIteration 0 on both data items? (I know that it should be 0 by default, but just want to be sure.)
b. If you turn on the debugger, in CopyLoop - OnAfterGetRecord, is the value of Number equal to 1 on the first iteration? And is the filter "Number 1..6" ? I know that the answer should be "Yes" but I don't know what else to check.
Yes and yes. It's quite extrange whats happening, because when I print as PDF, it generates 2 pages, and in preliminary view, just 1.
Appart from that, every loop calls to the RUN(I've also changed to RUNMODAL) of the report, but nothing...0 -
O.K then you should first remove the PageLoop. RDLC does pagebreaks itsself.
Next:NAV means with copies-> one Original and "copias" additional Copies.
So you should "SETRANGE(Number,1,1+copias)" in the OnPredataItem.
The Setting of PAGENO ist not needed. RDLC has it's own page counter, which you have to manage by yourself.
If you get only the original of your Report then you should leave Number as a Paramter for the RDLC- Report. In the RDLC you should check the grouping, it should be "No_Item" and "Number_Copyloop".
After checked that, you should get a print wich is sorted by by Item."No." and Number.
Thanks for your answer, but I have a problem for grouping in the report, because I don't have any row or anything to group. The report as only configured the background image, that is get from an exteral source, an URL.
How can I do a grouping without any added object?
Really thanks!0 -
This is the code from the button that generates the report, may be can help...
I'm getting really mad with this issue, I don't find any clue....0 -
That's an RDLC- problem not in C/AL. Did you check the data which transfered to RDLC?1
-
That's an RDLC- problem not in C/AL. Did you check the data which transfered to RDLC?
Thanks, yesterday I realise which was the problem. I didn't insert any of the item elements in the layout, so I couldn't make the grouping. So, I inserted the a table item, with the URL, and the loop started to work. I don't want to show the URL on the report, so, I changed the font color to white, and problem solved.
Thanks for all your tips!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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