PDA

View Full Version : vpe question



Tom Aravich
18-Feb-2005, 09:15 AM
Hi:



I have a customer that currently print the production routers (there are
many different production steps and not all parts get all steps), production
tracers, and control charts in multiple reports. With a change in personnel
they would like to have the multiple reports come out as one packet for each
part produced.



The challenges are:

1) Valid productions steps get printed with part specific information
one a page.

2) A tracer tag gets printed with all the valid production steps for
this part. There is one tag for the number of containers to be produced.

3) There is a control chart that prints that contains the high and low
limits, and scrap limits for their X&R charting. The numbers of charts that
print are determined by the dimension, frequency for charting, and the
number being produced. This report prints on legal paper.

4) The combining of these reports could result in runs of over 1000
pages. Would memory be a factor? The control charts process has a lot of
code because the dimensions can be weight in grams (up to 999) or the limits
of a grove (0.0001).

5) Can VPE do a double nested report, change the number of pages that
print for each nesting, and change paper size when needed?

6) Any suggestions?



Thanks

Tom Aravich

A&D Data Systems

starzen
18-Feb-2005, 05:40 PM
Tom

RE: Memory Usage for large documents
no problem at all. VPE can handle thousands of pages without any problems. I
have done this often.

As far as nested reports our classes can handle reports nested multiple
levels deep. Also you can have multiple reports on the same nesting level

Example

Customer Report
Order Header Report
Order Transaction Report
Invoice Header Report
Invoice Transaction Report
Invoice Payments Report
....

So you would list all customers, then list all their order heades with
transactions and then all invoices with transactions and then the payments
associated to an invoice

All nesting levels are limited by memory only

RE: Page Numbering
While VPE will tell you the page number (the actual number in a report) the
printing of the page numbers is pretty much up to you

For example to number all pages with a Page x of y label you can do this

Get DoVpeGetPageCount TO iCount

For iPage From 1 to iCount
Send DoVpeGotoPage iPage

Send szWritePos VLEFTMARGIN ("Page "+trim(iPage)+" of
"+trim(iCount))
Loop

You would call this after the report has finished. VPE allows you to go back
to any page at any time and add things to them. If you want to number
sections you can of course do the same thing in one of the child reports or
in a subtotal or similar

RE: Changing Paper size and orientation mid report

Yes VPE can do that. Some of these features may not be supported on all
printers though especially changing orientation. I seem to remember that
older printers may have problems with this.


Another features we have in our class library is that you can run multiple
completely separate reports and print them into the same physical document.

Also a feature of VPE is that you can save any document to disk as a VPE
document. Later you can load these documents and combine them into one
master document

If you have any specific questions just holler


--
Michael Salzlechner
StarZen Technologies, Inc
Visual DataFlex Controls, Tools and consulting
http://www.starzen.com