Thread: E2247 error TPrinter orientation is not acccessible

  1. #1
    Registered User
    Join Date
    Aug 2006
    Location
    Waddinxveen, Netherlands
    Posts
    5

    E2247 error TPrinter orientation is not acccessible

    Hi all,

    I use the following command in Borland C++ Builder:

    Printer()->SetOrientation(poLandscape);

    but tyhe following error code is displayed:

    [C++ Error] Main.cpp(1087): E2247 '_fastcall TPrinter::SetOrientation(TPrinterOrientation)' is not accessible

    Any help would be very appriciated.

    Johan

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Is SetOrientation a public method? How did you pick that function to call, does documentation say it should be allowed (I'm not familiar with this Borland code)?

  3. #3
    Registered User
    Join Date
    Aug 2006
    Location
    Waddinxveen, Netherlands
    Posts
    5
    No, it is not a public method. It is a privite method.

    void __fastcall SetOrientation(TPrinterOrientation Value);


    Johan

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Then you cannot call it unless you are inside a TPrinter member function or friend function.

    Perhaps there is another function that is public that can help you change the orientation. The SetOrientation function is only meant to be used by the TPrinter class itself.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getting orientation and position in opengl
    By ting in forum Game Programming
    Replies: 9
    Last Post: 07-07-2008, 04:13 PM
  2. same sex marriages
    By major_small in forum A Brief History of Cprogramming.com
    Replies: 159
    Last Post: 11-29-2003, 03:38 PM
  3. why do some source save with z as up orientation
    By Shadow12345 in forum Game Programming
    Replies: 6
    Last Post: 12-09-2002, 05:07 PM