Saving WordDocument


Badge +1

 

Hi guys 

I'm using webmerge servicebroker(it allows to merge my data from form with template)

Return type of the SmartObject is File

And i can't figure out how to save this file 

 

Will be grateful for the help

 

 


2 replies

Userlevel 1
Badge +8

From where are you calling the broker?

 

File types are returned in a propriatary XML format where the file name is in one node and the file contents are stored in Base64 formate in the other node. K2 components understand how to work with this property type. If you are needing to save it to the file system, you will need to either use custom code or I believe you can download a broker to allow you to save to the file system from here: http://community.k2.com/t5/K2-blackpearl/File-Service-Broker/ba-p/65536

 

There are also some file operations inline functions you can use here: http://community.k2.com/t5/K2-blackpearl/File-System-Operations/ba-p/1005

 

If you are calling the word broker from smartforms, you would just need to find a file attachment control to the return value of your smartobject that was using the broker.

 

S.

Badge +1

Look 

When we click submit button we call our SmartObject

15376i21C24F2E991855DD.jpg

Reply