Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tray selection
Message
From
08/12/2004 11:22:48
 
 
To
07/12/2004 13:44:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00967459
Message ID:
00967775
Views:
12
Hi Tore
Thank you for the help I think I found the solution with WIN API

I receive that solution from Rich Sampson Mind's Eye, Inc.

Currently, I don't have a method directly allowing this to be assigned.
However, it does sound like it would be something very useful to do. There
are several ways that it could be done. First, there is the method called
AddNewPage() in the MindsEyeReportEngine which has the code to create the
new page in the MERE OCX. So, after the page is created code could be placed
there or in the OnNewPage() Method/Event that is fired by the AddNewPage()
Method. With BINDEVENTS(), you could hook in on the fly to do this.

If you have any suggestions as to how it might be best let me know. I will
have to put some more thought into it and think of where it would be best to
place the code such as in the PAGE FOOTER ONEXIT() Event of the FRX or in
the PAGE HEADER ONEXIT().

Another thing that might be useful would be to add a new property to the
page which would let you assign it some comment for the page and then you
could quickly scan through all the pages and then check the COMMENT and set
the PAPERBIN based upon that.


Let me know what you think.


Rich Simpson
Mind's Eye, Inc.

I am using all Windows API Calls. Simplistically, the following Psuedo Code
shows how things are done in my Delphi OCX code:

BEGINDOC && A Device Context is created for drawing to for the specific
printer.
FOR I = 1 TO PAGESTOPRINT
SETUP PAGE && Modifies the DEVMODE Structure for the current page which
controls BIN/PAPER SIZE/ORIENTATION etc.
PRINT PAGE && Prints the Pagebased upon the DEVMODE structure for the
current page
ENDFOR
ENDDOC && Document gets released to Printer Driver here for printing

Where were you wanting to place the code in the FRX for the tray switching?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform