Home » Developer & Programmer » Forms » Oracle Graphics Builder
Oracle Graphics Builder [message #81784] Thu, 20 March 2003 09:02
Angel G
Messages: 2
Registered: March 2003
Junior Member
Hi, i'm using this piece of code in the Open Trigger of Graphics:

PROCEDURE Inicio IS
height number := 10*og_inch;
width number := 10*og_inch;
ep number;
sp number;
rec0 OG_Printer_Attr;
rec1 OG_Printer_Attr;
rec2 OG_Printer_Attr;
BEGIN
-- =================================================
rec0 OG_Printer_Attr;
rec1 OG_Printer_Attr;
rec2 OG_Printer_Attr;
-- =================================================
rec0.mask := OG_STARTPAGE_PRINTERA;
rec1.mask := OG_ENDPAGE_PRINTERA;
rec2.mask := OG_COPIES_PRINTERA;
-- =================================================
rec0.StartPage := 1;
rec1.EndPage := 1;
rec2.copies := 1;
-- =================================================
og_set_attr(Rec0);
og_set_attr(Rec1);
og_set_attr(Rec2);
og_set_pagesize(height, width);
END;

and this piece of code in a button procedure for printing:

PROCEDURE OGBUTTONPROC10 (buttonobj IN og_object,
hitobj IN og_object,
win IN og_window,
eventinfo IN og_event) IS
the_window OG_Window;
BEGIN
the_window:=OG_Get_Window('Main Layout');
OG_Print(The_Window);
END;

I've checked the values in the File Menu Printer option and the values has changed to the values i' ve specified, but when i hit the Button for printing in my graphic, it prints not one page but four! and those extra three pages are white pages. In total i got

1 Page with the graphics i want to print. ok
+ 3 White Pages. ??
-----
4 Pages (and i'm only interested in the first one).

the weird thing is that if i print using the print dialog box from the file menu using the values i specified, works just fine!!!.

I really appreciated any help, because i only want to print just one page not four. And i'm only have one layer active at the moment for print.

Thanks in advance.
Previous Topic: Instantiating JClient Form from another application
Next Topic: web based Form
Goto Forum:
  


Current Time: Thu Mar 28 14:42:10 CDT 2024