StyleSheet Error

Discussion in 'AutoCAD' started by Chris Picklesimer, Aug 12, 2003.

  1. I sometimes get an Invalid Input error when I attempt to change the
    StyleSheet property of a Layout. Any ideas why this would happen and how to
    avoid?

    Thanks.

    Chris

    Private Sub Test()
    LayoutChange "Acrobat Distiller", "monochrome.ctb"
    End Sub

    Private Sub LayoutChange(strPrinter As String, strStyleSheet As String)
    Dim objLayout As AcadLayout

    For Each objLayout In ThisDrawing.Layouts
    objLayout.ConfigName = strPrinter
    objLayout.StyleSheet = strStyleSheet '<---------------Error Here
    Next

    End Sub
     
    Chris Picklesimer, Aug 12, 2003
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.