Hello Bentley Community-ites.
When trying to port our printing application from MicroStation V8i to CONNECT Update 2 I ran into a problem causing MicroStation to crash.
Taking the code from Example 1 of the Print Organizer Key-in section of the MicroStation Help and inserting into the MicroStation INITAPP:
Sub OnProjectLoad()
CadInputQueue.SendKeyin "mdl load bentley.printorganizer.dll"
' CadInputQueue.SendKeyin "PRINTORGANIZER DIALOG"
CadInputQueue.SendKeyin "PRINTORGANIZER NEW"
CadInputQueue.SendKeyin "PRINTORGANIZER PRINTERDRIVER pdf.pltcfg"
CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE c:\cadfiles\model1.dgn"
CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE c:\cadfiles\model2.dgn"
CadInputQueue.SendKeyin "PRINTORGANIZER ADD FILE c:\cadfiles\model3.dgn"
CadInputQueue.SendKeyin "PRINTORGANIZER SUBMITAS SINGLE"
CadInputQueue.SendKeyin "PRINTORGANIZER PRINT ALL"
CadInputQueue.SendKeyin "PRINTORGANIZER EXIT"
End Sub
causes the following exception to occur in MicroStation:
Managed Call Stack:
0: Void set_Item(Int32, System.Drawing.Image) from System.Windows.Forms.ImageList+ImageCollection in System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
1: Void SetMSIcons() from PrintOrganizer.AppForm in Bentley.PrintOrganizer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9bfed12b64a9b7df
The question I have is: Can PRINTORGANIZER still be run as an INITAPP in CONNECT Edition or I am doing something wrong/missing something?
Thanks
Cat
↧
Using PRINTORGANIZER keyins as INITAPP
↧