commondialogbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mariyana
    New Member
    • Mar 2007
    • 11

    commondialogbox

    I have a code
    objImpRep.Publi shXML "c:\temp\abc.xm l" (where objImpRep is an object and publishxml is used to generate xml in the given path)

    i have hardcoded the path and want a saveas dialogbox here. how do i include here. what is commondialogbox and how do i include that here.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by mariyana
    I have a code
    objImpRep.Publi shXML "c:\temp\abc.xm l" (where objImpRep is an object and publishxml is used to generate xml in the given path)

    i have hardcoded the path and want a saveas dialogbox here. how do i include here. what is commondialogbox and how do i include that here.
    The question is a little confusing. Are you using Visual Basic? What version?

    Are you saying that you want to use a "Save As..." dialogue instead of using a hard-coded path? If so, check out the Microsoft Common Dialog Control". You just add this to your project, and follow the instructions in the documentation.

    Comment

    • mariyana
      New Member
      • Mar 2007
      • 11

      #3
      ya now i have added Microsoft component needed for the same.

      actually the code is written in a module and when i give

      dim savefile as CommonDialog
      objImpRep.Publi shXML savefile.Showsa ve

      it is giviing an error......

      Comment

      Working...