Message 1 of 2
Error When Changing the StyleSheet

Not applicable
04-15-2002
10:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I try to change the plot style to monochrome.ctb I get an run time error box come up telling me that this is an invalid input for the StyleSheet. Can anyone help?
Dim myApp As AcadApplication
Set myApp = CreateObject("Autocad.Application")
myApp.Documents.Open "C:\Reports\TPBH1.dwg"
myApp.ActiveDocument.ActiveLayout.StyleSheet = "monochrome.ctb"
myApp.ActiveDocument.Plot.PlotToDevice ("Acrobat Distiller")
Set myApp = Nothing
End Sub
Mike Hoar
Dim myApp As AcadApplication
Set myApp = CreateObject("Autocad.Application")
myApp.Documents.Open "C:\Reports\TPBH1.dwg"
myApp.ActiveDocument.ActiveLayout.StyleSheet = "monochrome.ctb"
myApp.ActiveDocument.Plot.PlotToDevice ("Acrobat Distiller")
Set myApp = Nothing
End Sub
Mike Hoar