2 Replies Latest reply on Feb 19, 2009 9:16 PM by hm_arul

    Dialog box it's not showing

    hm_arul Level 1
      Hi scripters

      Here I am trying to list all the printer presets in the application. Below is my code, but I am not getting any response!

      var myPDFExportPreset = app.printerPresets.item(0);
      var myPresetIndex = myPDFExportPreset.index;
      pdfPresetDialog = app.dialogs.add({name:"Print File"});
      with (pdfPresetDialog.dialogColumns.add()) {
      with (dialogRows.add()) {
      with (dialogColumns.add()) {
      dialogRows.add().staticTexts.add({staticLabel: "Presets"});
      with (dialogRows.add()) {
      pdfDD = dropdowns.add();
      pdfDD.minWidth = 250
      sl = new Array();
      for (i=0; i < app.printerPresets.length; i++)
      pdfDD.stringList = sl;
      pdfDD.selectedIndex = myPresetIndex;


      can anyone tell me where I am mistaken. I am working with idcs2

      thanks in advance

      a r u l