export rtf without confirm dialog

Hi all,

I like to export a module via VB.
I'm using dxl skript:

it works fine but i dont like to confirm any dialogs so i need a way to do automatically.
I hope you can help me.
Thanks in advance
VBdo - Thu Dec 02 07:43:13 EST 2010

Re: export rtf without confirm dialog
SystemAdmin - Thu Dec 02 07:56:53 EST 2010

If you want to use the script you attached then comment out all the ack dialog boxes, eg line 1110:
 

// ack "There is no current module to export."

Re: export rtf without confirm dialog
VBdo - Thu Dec 02 08:15:20 EST 2010

SystemAdmin - Thu Dec 02 07:56:53 EST 2010

If you want to use the script you attached then comment out all the ack dialog boxes, eg line 1110:
 

// ack "There is no current module to export."

That is ok, but:
When I run the script i get following window:"test.jpg"
I dont like tu push "Export Now", I like to run without dialog box like "Export Now"
Thanks in advance
Attachments

attachment_14558738_test.jpg

Re: export rtf without confirm dialog
VBdo - Fri Dec 03 07:58:18 EST 2010

VBdo - Thu Dec 02 08:15:20 EST 2010
That is ok, but:
When I run the script i get following window:"test.jpg"
I dont like tu push "Export Now", I like to run without dialog box like "Export Now"
Thanks in advance

I'm sorry for my bad english.
Is there a possibility to export automatically rtf.file?
or a dxl script he automatically runs off?

Thanks in advance

Re: export rtf without confirm dialog
VBdo - Thu Dec 09 10:17:30 EST 2010

VBdo - Fri Dec 03 07:58:18 EST 2010
I'm sorry for my bad english.
Is there a possibility to export automatically rtf.file?
or a dxl script he automatically runs off?

Thanks in advance

Is there a possibility a module with dxl to generate?
Does exist a possibility to import/export a module Automatically with VB in Doors?

Thanks in advance

Re: export rtf without confirm dialog
VBdo - Wed Jan 12 10:54:56 EST 2011

VBdo - Thu Dec 09 10:17:30 EST 2010
Is there a possibility a module with dxl to generate?
Does exist a possibility to import/export a module Automatically with VB in Doors?

Thanks in advance

Help!

Re: export rtf without confirm dialog
Peter_Albert - Wed Jan 12 11:40:32 EST 2011

VBdo - Wed Jan 12 10:54:56 EST 2011
Help!

Well, in your example you are calling the dialogue box with

makeExporterUI(rtfTitle, helpExportRichText, true, false, "rtf", "Rich Text Format")
block exportBox

 


Now, the code for void makeExporterUI is in the included utils\doctools\itfui2.inc. If you look into that file, and into the respective routine, then you see that the "Export..." button is related to the "doExport" callBack.

Without testing, if you replace the above code in your example with

 

makeExporterUI(rtfTitle, helpExportRichText, true, false, "rtf", "Rich Text Format")
doExport(exportBox)
release exportBox
destroy exportBox
exportBox = null

then that should be equivalent to pressing the "Export..." button.

If you want to select different options than the default ones, then this is a different story.

Regards,

Peter

Re: export rtf without confirm dialog
VBdo - Thu Jan 13 03:22:36 EST 2011

Peter_Albert - Wed Jan 12 11:40:32 EST 2011

Well, in your example you are calling the dialogue box with

makeExporterUI(rtfTitle, helpExportRichText, true, false, "rtf", "Rich Text Format")
block exportBox

 


Now, the code for void makeExporterUI is in the included utils\doctools\itfui2.inc. If you look into that file, and into the respective routine, then you see that the "Export..." button is related to the "doExport" callBack.

Without testing, if you replace the above code in your example with

 

makeExporterUI(rtfTitle, helpExportRichText, true, false, "rtf", "Rich Text Format")
doExport(exportBox)
release exportBox
destroy exportBox
exportBox = null

then that should be equivalent to pressing the "Export..." button.

If you want to select different options than the default ones, then this is a different story.

Regards,

Peter

Thank you very much!