Oracle Forms (MOSC)

MOSC Banner

Word Document not printing in 11g

edited Oct 18, 2016 5:00AM in Oracle Forms (MOSC) 2 commentsAnswered

Hi,

Word document is not printing in 11g, but works in 10g. Using Forms 11gR2. Jacob 1.14.3.

Below is the code that works in 10g but not in 11g.

Any help would be greatly appreciated.

Thanks

Madhu

-------------------------------------------------------------------------------------------------------------------------------

PROCEDURE print_word_doc(l_file varchar2) IS

 

  app OLE2.OBJ_TYPE;

 

  docs OLE2.OBJ_TYPE;

 

   doc OLE2.OBJ_TYPE;

 

  selection OLE2.OBJ_TYPE;

 

  args OLE2.LIST_TYPE;

 

BEGIN

 

  app := client_ole2.create_obj('word.application');

 

  client_ole2.set_property(app, 'visible', 0);  

 

  docs := client_ole2.get_obj_property(app, 'documents');

 

 

  args := client_ole2.create_arglist;

 

  client_ole2.add_arg(args, l_file);--'c:\temp\424545READ.docx'

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center