Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Network:
Windows 2000 Server
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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement