![]() |
#1
|
|||
|
|||
![]()
Is there any way to disable "Delay Load VBA" programatically.
I did have a problem while pasting, disabling this option solve the problem, but I will like to do it programatically. Thanks and best regards |
#2
|
||||
|
||||
![]()
Michael,
You need to fiddle with registry. Here is the explanation of the key you need to change: http://www.oberonplace.com/forum/vie...hp?p=2268#2268 |
#3
|
|||
|
|||
![]()
Thanks Alex. It will help a great deal.
Best regards |
#4
|
|||
|
|||
![]()
There is not Application Preference Register under Corel Photo Paint.
What else? Best regards |
#5
|
||||
|
||||
![]()
Hmm, you are right. Photo-Paint doesn't keep its settings in registry. In fact, they are in the INI file in the workspace folder:
Code:
C:\Documents and Settings\<UserName>\Application Data\Corel\Graphics12\User Workspace\Corel PHOTO-PAINT12\_default\CorelPP.ini Code:
... [PREFERENCES] ... DelayLoad=1 ... You can use Windows API function WritePrivateProfileString string to set this value directly: Code:
Private Declare Function WritePrivateProfileString Lib "kernel32" _ Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, ByVal lpString As String, ByVal lpFileName As String) As Long Sub ForceVBALoad() Dim INIFile As String INIFile = "C:\Documents and Settings\michael\Application Data\Corel\Graphics12\User Workspace\Corel PHOTO-PAINT12\_default\CorelPP.ini" WritePrivateProfileString "PREFERENCES", "DelayLoad", "0", INIFile End Sub |
#6
|
|||
|
|||
![]()
It works fine changing the Delay value in the INI file, but it doesn't initialize VBA until PP is closed and reopened.
It isn't there another way to initialize VBA after PP is open? Best regards |
#8
|
|||
|
|||
![]()
Alex, please make a checkmark for version 13 or for next SP if possible.
Thanks a lot, and best regards |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
delete vba project from cdr file | hotairballoon | CorelDRAW/Corel DESIGNER VBA | 1 | 18-05-2005 10:08 |
CD 10, VBA not returning true outline width | Webster | CorelDRAW/Corel DESIGNER VBA | 1 | 24-11-2004 18:09 |
Detect if VBA is installed (an answer and a question) | reanan | CorelDRAW/Corel DESIGNER VBA | 3 | 04-12-2002 15:35 |