Export Quotation to Word
Thijs Geeris
Hello,In Business One when you export a marketing document (for examp a quotation) to Word the document gets saved in a directory. When you export the document again you get the question if you want to replace the existing document or if you want to create a new (see attachment).
When you do an export from a marketing document in Coresuite you get a new document every time you export the document. Isn't it possible to open an existing document as in standard SBO?
Why? One of our customers uses quotations with a lot of free text. This means they export the quotation to Word, Edit this document and add some text and save the document. Next time they export it again they want to see the older version of the document with the edited text and edit this document more.
Hope you have a solution for me how we can do this?
Regards Thijs
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/tgeeris/Export_to_Word.JPG]Export_to_Word.JPG[/url]
Philipp Knecht
Hi ThijsThis is possible with the newest beta (> 1.601).
Add this in the Imports Script:
SwissAddonFramework.UI
Put this in the document GenerateScript:
If GetData("LD.Par.PrintMode") = "W" And Not Engine.IsDoublePass Then
If System.IO.File.Exists(GetData("LD.Par.ExportPath")) Then
If Dialogs.MessageBox.Show("The Document exists. Open existing one?","Open existing","Generate new",Dialogs.MessageBox.Buttons.Button1 ) = Dialogs.MessageBox.Buttons.Button1 Then
System.Diagnostics.Process.Start(GetData("LD.Par.ExportPath"))
Engine.CancelRender()
End If
End If
End IfAnd don't forget to set the exportpath and the export filename in the printdefinition.
hth
0
Please sign in to leave a comment.
Comments
0 comments