Data Report (Printer Orientation)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Data Report (Printer Orientation)

Hybrid View

  1. #1
    Joseph V. Marcelo Guest

    Data Report (Printer Orientation)


    i am coding one report program and i noticed that landscape reports can't
    be viewed if your printer is set to portrait (it gives an error, "report
    is wider than screen or paper". i was able to get some codes that will change
    orientation of printer based on my report and it works just fine.. the problem
    is, eventough i put in my code to bring back the orientation to the original
    one, printer retains new orientation. any idea where to properly place the
    function call to bring back printer's orientation?

    Any help will be greatly appreciated.

    Thanks alot.

    Joseph

  2. #2
    Allan Quitalig Guest

    Re: Data Report (Printer Orientation)


    "Joseph V. Marcelo" <jvmarcelo@euromarche.com> wrote:
    >
    >i am coding one report program and i noticed that landscape reports can't
    >be viewed if your printer is set to portrait (it gives an error, "report
    >is wider than screen or paper". i was able to get some codes that will change
    >orientation of printer based on my report and it works just fine.. the problem
    >is, eventough i put in my code to bring back the orientation to the original
    >one, printer retains new orientation. any idea where to properly place the
    >function call to bring back printer's orientation?
    >
    >Any help will be greatly appreciated.
    >
    >Thanks alot.
    >
    >Joseph




    If you already controlled the orientation of the report
    then you can control the printer orientation back to its
    original one. If I may not be mistaken to your question
    you put another code to reset back the printer orientation
    upon the last execution of your printing program.

    ex. PRINTER.ORIENTATION = "OLD ORIENTATION" 'check the constants
    PRINTER.ENDDOC

    hope will help you



  3. #3
    Joseph Guest

    Re: Data Report (Printer Orientation)


    "Allan Quitalig" <awquitalig@basicad.com.ph> wrote:
    >
    >"Joseph V. Marcelo" <jvmarcelo@euromarche.com> wrote:
    >>
    >>i am coding one report program and i noticed that landscape reports can't
    >>be viewed if your printer is set to portrait (it gives an error, "report
    >>is wider than screen or paper". i was able to get some codes that will

    change
    >>orientation of printer based on my report and it works just fine.. the

    problem
    >>is, eventough i put in my code to bring back the orientation to the original
    >>one, printer retains new orientation. any idea where to properly place

    the
    >>function call to bring back printer's orientation?
    >>
    >>Any help will be greatly appreciated.
    >>
    >>Thanks alot.
    >>
    >>Joseph

    >
    >
    >
    >If you already controlled the orientation of the report
    >then you can control the printer orientation back to its
    >original one. If I may not be mistaken to your question
    >you put another code to reset back the printer orientation
    >upon the last execution of your printing program.
    >
    >ex. PRINTER.ORIENTATION = "OLD ORIENTATION" 'check the constants
    > PRINTER.ENDDOC
    >
    >hope will help you
    >
    >

    thanks allan!
    yes you are right i placed codes that will bring back orientation to the
    old one after report's execution...but still it did not work...i tried putting
    the code on the report's terminate event and tadaaaang....its now ok!
    one more tip...setting the orientation thru printer does not do the trick...
    i downloaded some codes from www.codeguru.com that will manipulate printer
    orientation.
    thanks anyway...
    Joseph




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center