Hi all,
I am trying to create a standard Label Report with 3 columns, based on table Purch. Rcpt Line. The label sheet contains: 3 columns x 6 rows
This has been created successfully (aligned and printing as it should)
Problem: If a sheet has previously had the first 5 labels used, how can I get the report to skip printing on the 1st column + 1st row and start at label 6..?
I have created a C/AL Global variable StartAtLabel where a user can enter the number to start printing the labels from, but my code only skips the first label!
0
Comments
You've created a custom report with custom code and custom functionality, based on Purch. Rcpt Line.
You have unwanted behaviour due to one of your functions functioning incorrectly, and you want us to help you.
Based on this information alone, only a supernatural person might help you. (one that can read minds)
Here is what I miss: The actual code.
If that's not available, at leas the dataitems, with identifying what dataitem fills the labels and what dataitem prints the labels.
If it's fully custom we have nothing to go on (save the purch. rcpt. line.
|To-Increase|
The report, self generates a little bit of code on Purch. Rcpt Line - OnAfterGetRecord
I have NO custom code, I really didn't think it was a difficult question!
Q: How do you SKIP printing on the Nth label..???
Second, you can't skip with just 1 dataitem. Because it's fetch record, no print, fetch next , not print, fetch next, print 3, ...
You want to skip to say 5, then you have to have print empty labels (Row 1 = 1 to 3), next you want to skip the first label of row 2 and then start fetching records...
So before the purchline dataitem: you'll have to add an integer dataitem, with 1 empty section as high as the labels section.
onpredataitem integer onaftergetrecord of purch rcpt line. (before the Addr[columno][1])
This posting is as is, code has not been checked nor tested nor cared for
|To-Increase|
StartAtLabel = 6
NoOfColumns = 3
(StartAtLabel MOD NoOfColumns) = 0 so it would always start at column 1 not column 3 (the 6th label)