|
Karim
Posts: 170
Joined: 2006-01-02
|
Hi,
I create a simple word add-in with buttons in commandbar (with no events no code)
But I activate temporary proprety to true.
I registre this add in. If i print a lot of word document (for example 20 document) I see a slowdown in my print. it can even double print time and sometimes even crash word.
if i desactivate temporary ( to false) i haven't any problem.
It is necessary for me to keep the property "temporary" to true
What is the reason and possible solution ?
I use last add-ins and i and i have the problem on every TSE machine.
Karim |
|
Posted 21 Apr, 2011 04:06:51
|
|
Top
|
|
Eugene Astafiev
Guest
|
|
Posted 21 Apr, 2011 04:58:48
|
|
Top
|
|
Karim
Posts: 170
Joined: 2006-01-02
|
Hi Eugene,
1) Office 2003 SP3 with Windows 2003 server
2) Add-in Express for VCL Version 6.4 Release (build 758)
I already read the doc but for different reasons I keep the property temporary to true |
|
Posted 21 Apr, 2011 05:26:50
|
|
Top
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2875
Joined: 2004-04-05
|
Hi Karim,
We have never faced such an issue so far and I really doubt that the Temporary property of a custom command bar and its controls may cause this behavior. Could you please unregister your add-in, then add a temporary command bar with just one button using the following macro and try to print out documents?
Public Sub TestTemporary()
Dim cmdBar As Office.CommandBar
Dim cmdBarButton As Office.CommandBarButton
Set cmdBar = Application.CommandBars.Add("Test Bar", msoBarTop, False, True)
If Not (cmdBar Is Nothing) Then
Set cmdBarButton = cmdBar.Controls.Add(msoControlButton, 1, "MyParam", 1, True)
If Not (cmdBarButton Is Nothing) Then
cmdBarButton.Caption = "My Temporary Button"
cmdBarButton.Style = msoButtonCaption
End If
cmdBar.Visible = True
End If
End Sub
The code above is similar to the Add-in Express code that adds command bar controls. Please let me know about your test results.
Also, please clarify how you print documents, do you open all 20 documents before printing or you open/print/close them one-by-one? |
|
Posted 21 Apr, 2011 09:08:27
|
|
Top
|
|
Karim
Posts: 170
Joined: 2006-01-02
|
Hi Dmitry,
Do you open all 20 documents before printing
No
you open/print/close them one-by-one
Yes
With your vbs code I am unable to see a slowdown on the server.
But I see a prob in xp + Office 2003 that may be related to my problem.
when I print a Word document one by one and I put your code or dll (
with the temporary property to true) or your vbs I get a message :
"Normal.dot is being modified in another session of Word ..."
I get this message immediately after printing second document !
I haven't the problem if I uninstall the dll (with temporary = true) or yours vbs.
With Office 2003 Command BarButton are created also when printing ?
I test with Seven with Office 2007 and i don't have this problem.
Karim |
|
Posted 26 Apr, 2011 08:36:42
|
|
Top
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2875
Joined: 2004-04-05
|
Hi Karim,
Unfortunately I cannot reproduce the issue on our side with an Add-in Express based add-in nor with the above VBA code. Probably we have different settings of Word options. Could you please send all your Word settings to me? You can find our support email address in the readme.txt file located in the Add-in Express installation folder. |
|
Posted 26 Apr, 2011 11:53:53
|
|
Top
|
|
Karim
Posts: 170
Joined: 2006-01-02
|
Hi,
Before I made the print, i merge word document.
There are always at least two word document to open.
For this I use the ole control.
I think I could easily reproduce the problem.
I sent detail to your support e-mail address.
Karim |
|
Posted 27 Apr, 2011 04:08:36
|
|
Top
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2875
Joined: 2004-04-05
|
Hi Karim,
Thank you for your email with video, it was very helpful.
As you see this Word issue is not related to the Add-in Express code, you were able to reproduce it even using a Word macro. I would suggest changing your VBS script so that its code closes a created Word instance after using it. |
|
Posted 27 Apr, 2011 06:24:03
|
|
Top
|
|