12345678910111213141516171819202122232425262728293031 |
- Dim objApp As Object
- Dim objModel As Object
- Dim objCube As Object
- Dim filename as String
- Dim folder as String
- Dim publish As String
- Sub Main ()
- Rem On Error Resume Next
- rem folder = "C:\GAPS\Portal\System\Models"
- rem filename = "belege.mdc"
- rem publish = "C:\GAPS\Portal\System\Cube_out\temp"
-
- folder = GetField(Command, 1, ",")
- filename = GetField(Command, 2, ",")
- publish = GetField(Command, 3, ",")
-
- Set objApp = CreateObject("CognosTransformer.Application")
- Set objModel = objApp.OpenModel(folder + "\" + filename)
- Set objCube = objModel.Cubes.Item(1)
- objCube.MDCFile = publish + "\" + filename + ".mdc"
- objCube.Update
- objCube.CreateMDCFile
-
- objModel.Close
- objApp.Quit
- End Sub
|