144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
# File 'lib/Cells/workbook.rb', line 144
def create_workbook_from_template template_file_name
begin
if template_file_name == ''
raise 'Template file not specified'
end
str_uri = $product_uri + '/cells/' + @filename + '?templatefile=' + template_file_name
signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri)
response = RestClient.put(signed_uri,'', :accept => 'application/json')
json = JSON.parse(response)
return json
rescue Exception=>e
print e
end
end
|