PDA

View Full Version : "Invalid Input" when setting .configname


lcifers
09-22-2005, 05:14 AM
I am writing a batch printing application. It works well in AutoCAD
2002. But in AutoCAD 2000 I get an "Invalid Input" error when setting
the printer using .ConfigName. I know the string I'm passing has a good
value, or at least the value is good for 2002. Here's the code in
question:

With DWGDoc.ActiveLayout
.RefreshPlotDeviceInfo()
'''''''ERROR HERE!!!
.ConfigName = DWGPrinter
.RefreshPlotDeviceInfo()
For Each strPaper As String In
..GetCanonicalMediaNames
If strPaper.ToUpper =
Me.cboPaperSizes.Text.ToUpper Then
.CanonicalMediaName = strPaper
Exit For
End If
Debug.WriteLine(strPaper)
Next
.RefreshPlotDeviceInfo()
End With


Any thoughts as to what could be going wrong?

Thanks.

- Luther


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service