Results 1 to 7 of 7

Thread: Datareport is causing me a heart attack!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Datareport is causing me a heart attack!

    I have a paper size of Height: 5.50 Width:8.50 INCH

    I'm using Epsson Printers and OS Windows XP.

    I created a special document size and assigned it to the Epsson printer.

    now each 1440 = 1 inch right? ok

    So I set my reprot width to 7920 and height 12240


    now , when I try to print the report , the printer changes the paper orientation from Portait to Landscape !

    did I tell the printer to do so ? NO , it just changes it automatically!

    So what wrong am I doing here !!!? why is it changing to landscape


    and the funny thing , when I increase the height size of the form I have created in the printer settings , the reports appears in portait mode!!

    I don't understand , please help me out
    Last edited by bomayed; Dec 26th, 2005 at 12:03 PM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: Datareport is causing me a heart attack!

    Any ideas?

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Datareport is causing me a heart attack!

    I have a paper size of Height: 5.50 Width:8.50 INCH
    ...
    So I set my report width to 7920 and height 12240
    The above statements contradict each other.

    Height = 5.5 * 1440 = 7920 but you set it to 12240
    Width = 8.5 * 1440 = 12240 but you set it to 7920

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Datareport is causing me a heart attack!

    When are you changing the report's width? Design-time or run-time? You may need to change the PaperSize at run-time...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Datareport is causing me a heart attack!

    you may want to set printer orientation through code. take a look at the link.

  6. #6
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: Datareport is causing me a heart attack!

    You can change the Orientation by uising the code below it requires you to have service pack 4 or above ( Vb last service pack was 6 and i sugest you download it).

    Code:
    Option Explicit
    
    Private Sub Command1_Click()
    DataReport1.Orientation = rptOrientLandscape
    DataReport1.Show
    End Sub
    Hope this helped!!

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Datareport is causing me a heart attack!

    Moved to Reporting section

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width