Copy link to clipboard
Copied
Tell me please how to open the document FreeHand (*. FH9), something it had not appeared query options (options are by default)?
Public Function ILL(ByVal _path As String) As String
 Dim appRef = CreateObject("Illustrator.Application")
 ' Dim docRef = appRef.Open(_path, 1)
'Open a file with legacy text
 Dim optionsRef = CreateObject("Illustrator.OpenOptions")
 optionsRef.UpdateLegacyText = True
 Dim docRef = appRef.Open(_path, 1, optionsRef) ' 1 = aiDocumentRGBColor
turn off Alerts at the beggining of your code
appRef.UserInteractionLevel = aiDontDisplayAlerts
turn them back on at the end of your code
appRef.UserInteractionLevel = aiDisplayAlerts
Copy link to clipboard
Copied
turn off Alerts at the beggining of your code
appRef.UserInteractionLevel = aiDontDisplayAlerts
turn them back on at the end of your code
appRef.UserInteractionLevel = aiDisplayAlerts
Copy link to clipboard
Copied
Thank you very much CarlosCanto
Copy link to clipboard
Copied
I thought this is correct syntax.
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
Copy link to clipboard
Copied
you're correct...if you're writing JS
Copy link to clipboard
Copied
right i just saw the byRef in the function my bad.
Copy link to clipboard
Copied
no problemo, don't worry about it
Copy link to clipboard
Copied
I write in VB.net in Visual Studio net 2008 via COM for Illustrator CS4, working version looks appRef.UserInteractionLevel =- 1
 
					
				
				
			
		
 
					
				
				
			
		
Find more inspiration, events, and resources on the new Adobe Community
Explore Now