Netsol-NOS
asked on
MS Office 2010 Format
please see that we are using below code for generating stationary in our application.
Environment Details:-
Operating System = Windows 2008 R2 Enterprise Edition.
PowerBuilder Virtual Machine = PBVM 12.5 (means we are using PowerBuilder 12.5)
MS Office Template Used in application = Ms Office 2003.
We need to convert the template in = Ms Office 2010.
Code:-
li_result = ole_word.ConnectToObject(" ", "word.application")
IF li_result < 0 THEN
li_result = ole_word.ConnectToNewObjec t("word.ap plication" )
END IF
IF li_result <> 0 THEN
DESTROY ole_word
ib_connected = FALSE
MessageBox('MSWord Problem','Could Not Connect to MSWORD~n~nPlease make sure word runs properly on your machine~nRestart System')
RETURN -1
END IF
ib_connected = TRUE
ole_word.Application.Visib le = FALSE
RETURN 1
Our Application not allow to upload/attach the *.docx file. As mentioned in below screenshot.
Your kind help will be highly appreciated.
1.jpg
Environment Details:-
Operating System = Windows 2008 R2 Enterprise Edition.
PowerBuilder Virtual Machine = PBVM 12.5 (means we are using PowerBuilder 12.5)
MS Office Template Used in application = Ms Office 2003.
We need to convert the template in = Ms Office 2010.
Code:-
li_result = ole_word.ConnectToObject("
IF li_result < 0 THEN
li_result = ole_word.ConnectToNewObjec
END IF
IF li_result <> 0 THEN
DESTROY ole_word
ib_connected = FALSE
MessageBox('MSWord Problem','Could Not Connect to MSWORD~n~nPlease make sure word runs properly on your machine~nRestart System')
RETURN -1
END IF
ib_connected = TRUE
ole_word.Application.Visib
RETURN 1
Our Application not allow to upload/attach the *.docx file. As mentioned in below screenshot.
Your kind help will be highly appreciated.
1.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
50% solution.
Example:
Open in new window