Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User positional reports
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00058587
Message ID:
00058739
Views:
30
>George,
>
>Thanks for that, I have been playing around and found that only big numbers would move the report.
>
>My problem is, the total size of all the data per page is about 5" * 3", but I need to be able to make that data appear anywhere on a A4 page, so I dont think VPOS,HPOS wil give me enough movement.
>
>Another thing is that there are a couple of boxes on the report, when I moved it the vertical sides of the boxes became the size of the detail band, the boxes looked a bit like tall H's
>
>Dennis

Dennis,

If I understand the problem correctly, you still might be able to use the suggestions. For the purposes of this example, I'm going to assume that the horizontal positioning isn't much of an issue. Even if it is, I still think, with some adjustment, this might be the basis for a solution. Here's how I would attack the problem.

First, I'd create a template report for the output. This report form in reality, however, will never be used to actually print a report.

Next, since I assume that there must be some mechanism for the user to indicate the particular paper being used (for the size of the logo or whatever). I create another table that would serve two purposes: 1.) Basis for user selection via a list; and 2.) Storing the relative horizontal and vertical positions for the data output.

Now when it comes time to print a report, I open the template (with USE...), and copy it to a temporary table with:

COPY TO TEMP_RPT.FRX

This will also create the FRT memo file.

After closing the template, I next USE TEMP_RPT.FRX, and then:

REPLACE ALL VPOS WITH VPOS + (PAPER.VOFFSET * 10000) FOR INLIST(OBJTYPE, 5, 8)

Where PAPER is the name of the table containing the paper types and corresponding position. VOFFSET is the field containing the additional number of inches downward to move the data.

After closing the table, I then do REPORT FORM... with it, and once that's done delete both the FRX and FRT files. (I don't like junk hanging around the directories).

I hope that this at least provides you with some ideas that might help you find a solution.

George
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform