D
Derek
Hi
I am trying to develop a client application in VB.Net to export a package in FrontPage 2003 and save it to a location of my choosing. Thee following VBA code from within FrontPage 2003 runs but the file created is only 1k thus not a full export. I need to export Web Sites under the root and all of the Files, Folders etc. associated with that Web Site. If I could allow the user to select what he or she would like to export within the VB.Net App. that would be nice too.
Sub export(
Dim myWeb As WebE
myweb = Application.ActiveWe
Dim objWebWindow As WebEx
For Each myweb In Application.Web
For Each Folder In myweb.AllFolder
If Folder.IsWeb And Not Folder.IsRoot The
If Folder.Name = "ASC" The
Dim myWebPackage As WebPackag
Set objWebWindow = Webs.Open(ActiveWeb & "/" & Folder.Name, , , fpOpenNoWindow
Set myWebPackage = objWebWindow.CreatePackage("test_package"
x = myWebPackage.Add(objWebWindow, fpDepsDefault
Call myWebPackage.Save("c:\test_package", 1
End I
End I
Next Folde
Next mywe
End Sub
I am trying to develop a client application in VB.Net to export a package in FrontPage 2003 and save it to a location of my choosing. Thee following VBA code from within FrontPage 2003 runs but the file created is only 1k thus not a full export. I need to export Web Sites under the root and all of the Files, Folders etc. associated with that Web Site. If I could allow the user to select what he or she would like to export within the VB.Net App. that would be nice too.
Sub export(
Dim myWeb As WebE
myweb = Application.ActiveWe
Dim objWebWindow As WebEx
For Each myweb In Application.Web
For Each Folder In myweb.AllFolder
If Folder.IsWeb And Not Folder.IsRoot The
If Folder.Name = "ASC" The
Dim myWebPackage As WebPackag
Set objWebWindow = Webs.Open(ActiveWeb & "/" & Folder.Name, , , fpOpenNoWindow
Set myWebPackage = objWebWindow.CreatePackage("test_package"
x = myWebPackage.Add(objWebWindow, fpDepsDefault
Call myWebPackage.Save("c:\test_package", 1
End I
End I
Next Folde
Next mywe
End Sub