Crystal Report - Print Records at Specified Location on Page - crystal-reports-xi

I have a crystal report that is used to print pay slips for roughly 500 employees.
Three pay slips are listed on each page and each pay slip is separated by a horizontal line which is used to determine where the pay slip should be cut in order to separate them for hand out to employees.
I would like each pay slip to be printed at a specified location on each page. I would like the first pay slip to be printed at a set location at all times and the second at a set location below the first and the third at a set location below the second so when all 170 pages are printed and stack together they can be easily cut apart on a guillotine
I am using crystal report xi

I think you can put a long text box as divider at the left side of the report.

Related

Building an Average Load Time per Visit Metric in AA

I'm trying to build a per-visit average page load time metric in Adobe Analytics for use in analysis such as average page load time versus conversion rate (Example: Users with avg load time between 0-1s convert at X rate, users between 1-2s convert at Y rate, users between 2-3s convert at Z rate, etc).
We currently have page load time implemented as an event and an eVar on all pages, being captured in ms (ex: On loading the home page, we'll see eVar10=1782 and event10=1782). The eVar is set as a text string set to expire on hit with most recent allocation, while the event is set as an "up is bad" always record numeric with participation enabled.
My first instinct was simply a calculated metric with the Event divided by Page Views, but that ends up aggregating at too high a level (the grand total of all load speeds is divided by the grand total of page views). I tried throwing in various summation functions, but it all ended up equally garbage.
Is it possible to build Average-Per-Visit metrics in AA? Is my implementation even going in the right direction?
Could you do something like this? This might not be exactly what you want, but the calculated metric might help. If you divide your page load time metric by "page load time instances" you can get an average. Which if you have an evar for session id or username, etc, you can find the average load time per session or user. In the example below I use Day as the dimension, but you could use whatever evar you wanted, like username or session id.

Came across this thread as I was looking for something similar. The way I went about this is:
Check the CM here along with the breakdown
You can create a Pageload time/Pageview for each ECID and then further break it down by Visits. This will give you the average Page laod time for a user for a visit.
This you can cross tab with Orders. In my case visits which had orders typically

Delphi Rbuilder: Calculate value across multiple pages of data not just first and last page

I am using Rbuilder within a application constructed with Delphi. I have a report already built that displays a list of items but then at the bottom I have some subtotal fields as well as a total field. The subtotals and totals are defined as variables which then total up the cost of the individual items.
Unfortunately both the subtotals and totals only give me calculations for items on the first and last pages of data. Lets say there are 5 pages of data that prints out. Page one the totals are accurate.
Page two totals are accurate. Page 3 totals include ONLY the totals from page 1 and page 3. Page 4 total includes page 1 and page 4 and so on. I have been trying to play around with timing settings as well as moving my code calculating the total to different operations (ongettext, onprint, oncalc, etc)
Has anybody ever run into this?
Ok, so I kept working at this and eventually found the problem.
At the report level I changed the report from TwoPass to OnePass. That ended up giving me very close to what I wanted. I ended up having to write some more code to get exactly what I wanted but changing the number of passes worked.
I was trying to display a running total page by page. And as I changed pages it would update the value.
Onepass worked.

How to offer parameter for user to select an amt and then show that data

I have done report that shows summary of sales of items by free shipping or not free shipping. They are actually Product lines, that get free shipping or not.
It looks like this.
date Invoice# Free PL NOt free PL etc.
061113 1234 $29
061213 5678 $89
They want to have the flexibility to select ranges of BOTH free PL’s and non-free PL’s (e.g., “free PL’s over $70 and non-free over $30”, or “free PL’’s over $80 and non-free PL’s over $25” etc.)
They want to specify I guess in the param what amount then the CR should display according, so that in out case here only the second line would show.
Is this able to be done just in the param? if so, how would you code this?
this method may be a bit lengthy but will work for you hopefully.
make a table named PL history, now give it three fields, with ID, PL_DATE and PL_RATE, you need to insert new record in to that daily. if you want it to be more finer, add another column as PL_TIME as well. now when inserting the PL_Transaction, make sure that you enter time to that table as well.
Once it is done, make a view and like the transaction table with the respective PL_DATE and PL_TIME if you incorporate time, this will ensure that you pick the right PL specified during the transaction. YOu can do it behind the generate report button, will take no time to execute.
JUst call that view to the report, and get your specific PL using the formulas,
I tried calling a field to the report mannualy, it did come to the report, but it could not be called to the formula editor so , I thought of this solution , may help. thanks

Crystal Reports 10 - printing issue

I am using CR-10 to print a Sales order for Sage PFW. it will print the Sales order with no problem (multi-pages if needed).
What i would like it to do is
print that report as normal
THEN print it again but with some of the data removed.
this will give me a copy with pricing and also a copy with no pricing for the customer to sign. is there a way to do this automaticly when i print the report from PFW? thank you for any help you can give me the people at SAGE had no idea if it could be done.
Rob
I suggest to make 1 single report made my 2 sub-reports:
subreport with pricing
subreport without pricing
You will see both reports on screen, and you will print both at same time.

Quickbooks: Adding a negative value to an invoice using the QBDSK

Is there any way to add a line item containing a negative amount to an existing invoice?
I'm using QBSDK7 and QB Enterprise. (and if it matters .Net 3.5)
What we're attempting to do is automate the way we're creating invoices. We're already pulling in employee's time and applying it to the correct invoices, but when we go to add credits (just a negative amount on a line item on the invoice) using
InvoiceLineMod.Amount.SetValue(-1234)
it fails with the error "Transaction must be positive"
I've also tried adding a Service Item with a negative amount and giving it a positive quantity and I get the same result.
This seems like such a no-brainer as we have been doing this manually for the last 10 years. I'm guessing there is artificial restriction on this.
Some things to consider:
Credit Memos are no good as we need to display exact details of the reduction on the same page.
We don't have payments to apply yet in most cases.
This need to be done before any retainers are applied.
Any help would be greatly appreciated.
Can you show the complete code you're using to modify the invoice? Can you also show the exact error message you're getting?
It is possible, though to do you need to make sure that you're using a Discount Item as your ItemRef type (a Service Item will not work), and you need to make sure that the transaction as a whole is for a positive amount.
Sometimes our app has to adjust an invoice down with a negative number. I have been able to add negative line items using the following code. I have to set a quantity and a rate, instead of setting the amount.
IInvoiceLineAdd ila = ia.ORInvoiceLineAddList.Append().InvoiceLineAdd;
ila.ItemRef.ListID.SetValue(GetQBID(JobKey));
ila.Desc.SetValue("Adjustment");
ila.Quantity.SetValue(1);
ila.ORRatePriceLevel.Rate.SetValue(-1.00);
Quickbooks doesn't allow you to post an invoice with a negative balance. If you try to do it through the UI, it prompts you to create a credit memo instead. (And vice-versa if you try it with a credit memo.)
You can enter negative quantities and/or prices into the line items, but the total of the invoice has to be >= 0 or it won't post (i.e., add other line items that offset the negative amounts).
The solution is to use credit memos. Your client-side processing will be more complicated, but it's the only choice with Quickbooks.

Resources