cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Report Templates (MS Word)

Arunas
Trusted Contributor

We unable to create the report  word document through macro with below createobject code in web front end ,

Do we have to enable any option to active it in web front end ?

 

Set oWordApplication = CreateObject("Word.Application")

 

It works in Windows front end . 

 

Any suggestion would be appreciated //Thanks

2 Replies

Arunas
Trusted Contributor

Thanks Jerome!  it works the one you suggested ! Man Very Happy

 

Sub RTFGenerate(mgoContext, strResultRtf)
strResultRtf = "{\rtf1\ansi\ansicpg1252\deff0\deflang1036\deflangfe1036\deftab708{\fonttbl{\f0\fswiss\fprq2\fcharset0 Tahoma;}}{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 Test\par}"
End Sub

 

--Arunas

jhorber
MEGA
MEGA

Hello Arunas

 

RTF macro are not compatible with the generation mode used with Web Front-End.

In this mode, it is not possible to call MS word during execution ( execution of descriptors or post processing)

See http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=50120000000mr0sAAA

Jerome