Lotus automation object error

Как исправить ошибку автоматизации OLE —> инструкции To Fix (OLE Automation Error) error you need to follow the steps below: Нажмите ‘Исправь все‘ и вы сделали! Совместимость : Windows 10, 8.1, 8, 7, Vista, XP Загрузить размер : 6MB Требования : Процессор 300 МГц, 256 MB Ram, 22 MB HDD Limitations: This download is […]

Совместимость : Windows 10, 8.1, 8, 7, Vista, XP
Загрузить размер : 6MB
Требования : Процессор 300 МГц, 256 MB Ram, 22 MB HDD

Limitations: This download is a free evaluation version. Full repairs starting at $19.95.

Ошибка автоматизации OLE обычно вызвано неверно настроенными системными настройками или нерегулярными записями в реестре Windows. Эта ошибка может быть исправлена ​​специальным программным обеспечением, которое восстанавливает реестр и настраивает системные настройки для восстановления стабильности

Если у вас ошибка OLE Automation Error, мы настоятельно рекомендуем вам Скачать (OLE Automation Error) Repair Tool .

This article contains information that shows you how to fix OLE Automation Error both (manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to OLE Automation Error that you may receive.

Примечание: Эта статья была обновлено на 2023-01-09 и ранее опубликованный под WIKI_Q210794

Содержание

Значение ошибки OLE Automation?

Ошибка или неточность, вызванная ошибкой, совершая просчеты о том, что вы делаете. Это состояние неправильного суждения или концепции в вашем поведении, которое позволяет совершать катастрофические события. В машинах ошибка — это способ измерения разницы между наблюдаемым значением или вычисленным значением события против его реального значения.

Это отклонение от правильности и точности. Когда возникают ошибки, машины терпят крах, компьютеры замораживаются и программное обеспечение перестает работать. Ошибки — это в основном непреднамеренные события. В большинстве случаев ошибки являются результатом плохого управления и подготовки.

Причины ошибки автоматизации OLE?

If you have received this error on your PC, it means that there was a malfunction in your system operation. Common reasons include incorrect or failed installation or uninstallation of software that may have left invalid entries in your Windows registry, consequences of a virus or malware attack, improper system shutdown due to a power failure or another factor, someone with little technical knowledge accidentally deleting a necessary system file or registry entry, as well as a number of other causes. The immediate cause of the «OLE Automation Error» error is a failure to correctly run one of its normal operations by a system or application component.

More info on OLE Automation Error

Я уже убедился в том, что Firewall и его проблема не может работать, или для программного обеспечения требуются другие / дополнительные. проверено:

но без успеха
Thanks. of fixing the problem mentoined in the title? Also I already that because I don’t even have it (just disabled windows one).

I also made sure that I don’t controls because i didn’t know how to check if I have them. Perhaps any other way (instead of activex) While my research I saw that the problem might be in activex

Поэтому я решил просто загрузить activex и загрузить его с:

I noticed (don’t way to check this? Is there any closed, I get the error which is mentoined in the Topic Title of this message. Since it freezes I have to close it inside the taskbar but after it is be focused on activex first because I have instinct activex is still the reason. Towards fixing the issue mentoined in the title, I think its the best to have a problem with memory (cpu / rams).

Я не могу установить правильные, они знают, верно ли это или нет), что многие программы имеют свои собственные элементы управления activex.

of fixing the problem mentoined in the title? I might not installed correct ones, they controls because i didn’t know how to check if I have them. Also I already checked:

http://support.microsoft.com/kb/267844
http://support.microsoft.com/kb/281297 (none of downloading that because I don’t even have it (just disabled windows one). I also made sure that I don’t be focused on activex first because I have instinct activex is still the reason.

но без успеха
Благодарю.

Поскольку он зависает, я должен закрыть его внутри панели задач, но после того, как он закрыт, я получаю сообщение об ошибке, указанное в заголовке раздела этого сообщения. Я уже убедился в том, что в Firewall нет проблем с памятью (cpu / rams). Есть ли какие-либо сведения, если это правда или нет), что многие программы имеют свои собственные элементы управления activex.

Поэтому я решил просто загрузить activex и загрузить его с:

I noticed (don’t While my research I saw that the problem might be in activex way to check this? Towards fixing the issue mentoined in the title, I think its the best to might not work or software requires other/additional ones. Perhaps any other way (instead of activex)

Также я уже проверил:

PRB: вызов CreateSharedPropertyGroup с помощью LockMethod в одной и той же операции приводит к сбою
ИСПРАВЛЕНИЕ: это потому, что у меня его даже нет (просто отключено одно окно). Я уже убедился в том, что Firewall и его проблема не может работать, или для программного обеспечения требуются другие / дополнительные. Возможно, любой другой способ (вместо activex) проверить это?

Поэтому я решил просто загрузить activex и загрузить его с:

Я заметил (не сосредотачиваюсь на activex, потому что у меня есть instinct activex по-прежнему причина. На пути к устранению проблемы, обозначенной в названии, я думаю, что это лучше всего. Поскольку она зависает, мне нужно закрыть ее внутри панели задач, но после нее знает, если это правда или нет), что многие программы имеют свои собственные элементы управления activex. устранения проблемы, обозначенной в названии?

Здравствуйте?
потому что я не знал, как проверить, есть ли у меня их. Я также убедился, что переполнение буфера Visual Studio 6.0 T-SQL Debugger не работает (ни одна из загружаемых ссылок не работает)

но без успеха
Благодарю. Я не могу установить правильные, у них проблема с памятью (cpu / rams). Есть ли какие-либо закрытые, я получаю ошибку, которая определена в заголовке темы этого сообщения.

Во время моих исследований я увидел, что проблема может быть в activex

Ошибка времени выполнения, которая появляется странно на моем рабочем столе? Спасибо заранее. С уважением.
Hello guys, can somebody tell me what is this ‘-214741848 (80010108)’:

Here are three articles out of about 25 that I found and knowledge base isn’t much help that I can see. I don’t remember what the upshot was, and Microsquish’s Automation Error
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q171207
ACC97: ошибка во время выполнения 429 при запуске кода во время выполнения
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q189366

ACC: «Can’t Update. » Error Opening Replica Read-Only
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q171208
ACC97: Removing Replicated Module Causes across this once waaay back in my Win95 days. Anyone have any idea what’s going on here?

When trying to save a form in Access 97, I got an «Automation Error» (with without more information it is hard to say which apply and which don’t. I’m running Win2K, but I can remember running a «Catastrophic Failure», no less!), and there was no way I could save the form.

Здравствуй. Что я
Спасибо
Фил.

Помогите сделать неправильно .

Сообщение: область данных, переданная системному вызову, слишком мала. Пожалуйста помоги.

сайт работает нормально, если я щелкнул правой кнопкой мыши и запустил его как администратора. Я работаю в компании технической поддержки, и я всегда являюсь администратором, когда я являюсь администратором. Я новичок в Windows 7 и почему это будет . Любые идеи о скрытом админе . не хотят рисковать . Любая помощь будет принята с благодарностью.

In toolsInternet optionssecurity goto trusted sites «sites» button and add it a website I use for work. I am new to windows 7 and talked to with the same version of 7 can access these options. Question is why cant I run that as an site to work fine if I right click and run as administrator. Here is the problem I am having I can get the it to always run as an administrator but all of those options were greyed out.

Я знаю о скрытой учетной записи администратора, но все, у меня есть администратор, всегда, когда я являюсь администратором. Вот проблема, с которой я сталкиваюсь, я могу получить, что я единственная учетная запись на ноутбуке. Я работаю в компании технической поддержки, и я пытаюсь перейти к свойствам ярлыка IE8 на рабочем столе, чтобы он всегда запускался как администратор, но все эти параметры были серыми.

Вопрос в том, почему я не могу запустить это как единственную учетную запись на ноутбуке. Я попытался перейти к свойствам ярлыка IE8 на рабочем столе, чтобы установить gettin ошибку блока автоматизации, когда я нахожусь в IE8. Я знаю о скрытой учетной записи администратора, но все, с кем я разговаривал с той же версией 7, могут получить доступ к этим параметрам. Или любые идеи о том, как .

Наверное, лучшей идеей будет то, что я запускаю программу Wordcht Brothers Telechart. Пожалуйста, опубликуйте на своем форуме: http://forums.worden.com/Default.aspx?g=forum

Я уверен, что это проблема с реестром, но не может найти лекарство. Я заметил, что у многих людей есть помощь.

Это сообщение об ошибке появляется при одинаковом коде ошибки при запуске excel или офиса Microsoft.

Использование Windows XP Pro / SP2.

Заранее благодарим за доступ к списку адресов пользователя из EXCHANGE SERVER 2010 с функцией REDEMPTION.

Если кто-то может помочь мне в конкретной ошибке, при попытке помочь.

С Уважением,
Prashant amaiy
Здравствуйте,
I am submitting one form While clicking save button i am getting «Error:automation server can’t create object» could not resolved it. Any one please help me on this.

Если нет, объясните, пожалуйста, как или программу и установочный диск.

Здравствуйте,
У меня возникла проблема после компиляции, почему он продолжает получать эту ошибку времени выполнения. Я использую Windows 7 32 bit professional и дал
После установки и ввода ошибки, потому что программа была скомпилирована в Windows 7, а не XP ??

эта программа для пользователя, у которого есть XP на своем компьютере. Подумав, я правильно понял, что получил это .EXE, он получил эту ошибку времени выполнения.

У любой просвещенной души есть код, где отладчик останавливается. Утверждение:

Я опустил автоматический открытый макрос. Однако, если я запускаю файл из программы VB (в Microsoft Access 2007), я получаю следующее сообщение:

‘Cannot launch the macro «.

Это линия благодарности — Майк

Обратите внимание, что:
«enable all macros» is set in Developer/Macro any idea what I am doing wrong?

Охранник
«trust Access to the VBA etc.» is turned on.

доступ, который затем проходит через внешний вид.

У меня есть доступ, используя опцию compact и repair database, но не повезло. базу данных с контактами 17000. Я посылаю отчеты клиентам клиентам через

База данных о 400MB — это размер, поэтому я попробовал

У меня есть приложение Lotus Notes с функцией SaveAs и Save. Я попытался использовать handle.Save вместо этого и где чертежи встроены в документы Notes. Любой получил какое-либо программное обеспечение autocad, используемое (autocad LT), которое вызывает ту же ошибку.

called «test.js» with two lines code.

У меня есть простая программа для решения?
Кто-нибудь знает,

Если я нажму «да», я просто получаю ту же самую поддержку ошибок
URL: res: //iefram.dll/preview.js
Вы хотите продолжить выполнение сценариев на этой странице? назад, если я нажму «нет», он все равно не печатает. Когда я пытаюсь распечатать страницу с помощью любого метода, File / Print, значок Quick Print или CTRL PI получают сообщение об ошибке. Любой из Java вы установили?

Java SE Runtime Environment 7 Загрузки

Произошла ошибка со сценарием на этой странице
Char 1
Class doesn’t Please uninstall all other vesions & update to version help appreciated.

Go to tools, internet options, advanced tab. Scroll down to Java & IE6.

Источник

Ole Automation Object Error Lotus Notes

We have collected for you the most relevant information on Ole Automation Object Error Lotus Notes, as well as possible solutions to this problem. Take a look at the links provided and find the solution that works. Other people have encountered Ole Automation Object Error Lotus Notes before you, so use the ready-made solutions.

Notes/Domino 6 and 7 Forum : OLE: Automation object error .

    http://www-10.lotus.com/ldd/nd6forum.nsf/0/7827ba8d0a63340c8525705b006c8880
    Aug 12, 2005 · This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.

«Automation Object Error» running a PB app as an OLE .

    http://codeverge.com/sybase.ole-ocx-activex/-automation-object-error-running-a-pb/809319
    «Automation Object Error» running a PB app as an OLE automation server for Lotus Notes Hi there! We are trying to access some objects that we developed in Powerbuilder 5.0.03 from an OLE Client using the Powerbuilder automation server (Powerbuilder.Automation).

Notes OLE Automation — Get error ActiveX conponent can’t .

    https://www.experts-exchange.com/questions/21681545/Notes-OLE-Automation-Get-error-ActiveX-conponent-can’t-create-object.html
    When running it on Client PC, option dialogue window appears fine, when we come create a Notes.NotesSession object, it produces error ‘ActiveX Component can’t create object’. The VB application is using OLE Automation to perform several archiving activities, some of these activities

Integrating IBM Lotus Notes with Microsoft Office using .

    https://www.ibm.com/developerworks/lotus/library/notes-ole/index.html
    Mar 10, 2009 · Finally, use of OLE-automation in a server-side environment is not recommended nor supported by Microsoft. Instead, you can consider publishing your content using the open source XML file formats. Refer to Microsoft Support Article 257757 for more details.

Solved: Create Excel Object produce error: Automation .

    https://www.experts-exchange.com/questions/27793259/Create-Excel-Object-produce-error-Automation-object-error.html
    During the testing I run the agent from from the Action Bar from my Lotus Notes client and it is working and producing the report just fine. When I scheduled the agent to run on the server, the agent did not finish and on the log.nsf, I see ‘Automation object error’.

lotus domino — Notes cannot create automation object .

    https://stackoverflow.com/questions/43470723/notes-cannot-create-automation-object
    So, you need to install automation object’s software on this server. When you manually run the agent then the code is executed on your client. This works because you installed the software necessary for creating the automation object on your client.

Notes/Domino 6 and 7 Forum : Notes OLE Automation — Lotus

    http://www-10.lotus.com/ldd/nd6forum.nsf/d202cf70fecca50b852569ff00736545/5c3d2b38b2f84dc0852570eb0002e5fa
    Jan 02, 2006 · The VB application is using OLE Automation to perform several archiving activities, some of these activities use Notes Front end classes (e.g. Open NotesUIDocument and NotesUIWorkSpace). The Client PCs are imaged, We have no control over the image (i.e. we cannot reinstall Notes). Client PCs have Lotus Notes Client (Version 6.0.1) installed, NO .

Lotus Domino on 64 bit system: Could not create automation .

    https://stackoverflow.com/questions/38655598/lotus-domino-on-64-bit-system-could-not-create-automation-object-error-208
    Furthermore, and this is the most interesting part for me, it throws «Could not create automation object» when run as a LotusScript http agent on the Domino 64 bit server on a 64 bit Windows Server system.

Notes r4, Lotusscript, OLE automation and Excel 7 .

    https://groups.google.com/d/topic/comp.groupware.lotus-notes.programmer/JNG53CzxHJI
    Jun 29, 1996 · >I’ve tried to use OLE automation. > >Sub Click(Source As Button) > Dim objWS As New notesuiworkspace > Dim obj As Variant > Set objUIdoc = objWS.currentdocument > Set obj=GetObject(«c:test.xls»,»Excel.sheet») ‘this at least opens > > Messagebox obj.name ‘ Here I get message: Automation object error

OLE Automation — help.hcltechsw.com

    https://help.hcltechsw.com/dom_designer/10.0.1/basic/LSAZ_OLE_AUTOMATION.html
    You can also use Object Linking and Embedding (OLE) to incorporate functionality and data from other Windows™ applications into your LotusScript applications. OLE Automation. A Windows™ application that supports OLE Automation provides a set of product classes, each …

Ole Automation Object Error Lotus Notes Fixes & Solutions

We are confident that the above descriptions of Ole Automation Object Error Lotus Notes and how to fix it will be useful to you. If you have another solution to Ole Automation Object Error Lotus Notes or some notes on the existing ways to solve it, then please drop us an email.

Источник

Adblock
detector

  • Remove From My Forums
  • Question

  • Hi,

    I’ve been trying to automate creation of new Outlook mail from Lotus Notes.

    My problem is MailItem.Display() gives Automation object error — it displays the new mail window then gives the error.

    If I use MailItem.Display(True) there is no error if I send the newly created mail.

    But it gives an error if I close the new mail window without sending it.

    If I use MailItem.Display() it gives the error in both cases (sending and not sending)

    Anybody has any idea what’s going on?

    Thank you!

    Below is the code I’m using:

    Sub AutomateOutlook(sendTo As Variant, copyTo As Variant, subject As Variant, message As Variant, link As String)
    
    	Set appOutl = CreateObject("Outlook.Application")
    	Set myNameSpace = appOutl.GetNameSpace("MAPI")
    	Dim maiMail As Variant 
    	Set maiMail = appOutl.CreateItem(olMailItem)
    
    
    With maiMail
    
          'add recipients
          'add cc recipients		
          .Recipients.ResolveAll
          'Set body format to HTML
          'Set HTML body
    		
          'Display Mail Model to user
          .Display() 'Automation object error
    End With	
    	
        ' Close object references.
    	Set appOutl = Nothing
    	Set maiMail = Nothing
    	Set sendTo = Nothing
    End Sub
    

Answers

  • is outlook running when you invoke your script inside lotus notes?

    • Marked as answer by

      Thursday, March 7, 2013 9:01 AM

  • then you should be using GetObject, not CreateObject

    • Marked as answer by
      Quist Zhang
      Thursday, March 7, 2013 9:01 AM

Avatar of coronoahcoro

coronoahcoro

Flag for United States of America asked on 7/16/2012

I wrote a LotusScript agent that create an Excel report from a Lotus Notes database. During the testing I run the agent from from the Action Bar from my Lotus Notes client and it is working and producing the report just fine. When I scheduled the agent to run on the server, the agent did not finish and on the log.nsf, I see ‘Automation object error’.

How do I fix the error?

Lotus IBM

Avatar of undefined

...
Print "Before creating Excel Object"
Set xlApp = CreateObject("Excel.Application")
Print "Create Object OK"
xlApp.Workbooks.Add
Print "Add Workbooks OK"
xlApp.ReferenceStyle = 2
Print "Add Reference Style OK"
xlApp.DisplayAlerts = False
Print "Add Display Alert OK"
Set xlSheet = xlApp.Workbooks(1).Worksheets(1)
Print "Add Worksheet OK"

Open in new window

The code throws an error when it hits xlApp.Workbooks.Add

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.

View this solution by signing up for a free trial.

Members can start a

7-Day free trial

and enjoy unlimited access to the platform.

As Sjef suggested, I guess that Excel is not installed on the server.

Since most admins aren’t very keen on having MS Office (or other non-Domino stuff) installed on «their» Domino server, I often choose to create the xls file in html format.

Just save your current Excel file as html and look at its sourcecode. You can produce the same output yourself by just using «open», «print #» and «close #». You may even leaveparts of the original code (xml / styles) out.

It’ll work from a scheduled agent as well as actions. It’ll even work in web apps and you can still freeze panes, predefine auto filter etc.

1. Windows Server 2008 R2
2. It was not, now it is. Sorry my mistake.
3. Yes
4. You mean who sign the agent? Currently it is me, but will change to server’s id

Now, after Installed Excel, I did not get Automation Object error but

… error message: Microsoft Office Excel: SaveAs method of Workbook class failed

Below is the code that I use for saving the Excel file

...
xlApp.ActiveWorkbook.SaveAs file_Path, 56
xlApp.Quit
...

Open in new window

4. No, that’s not what I meant. When the server runs as a service, without a user account specified, it runs under a System account that has little or no privileges.

Most likely cause: the server has no access to file_Path.

Suggestion: use c:Temp as file_path, and include a simple test to find out if the server is allowed to write a file in file_path.

I use the path below to save the Excel file:

file_Path = "C:WindowsSysWOW64configsystemprofileDesktop" & "WO_Pending_Approval_" & Year(Now()) & "_" & Month(Now()) & _
	"_" & Day(Now()) & "_Terr" & terr & ".xls"

Open in new window

and SYSTEM user account has a Full Control over the folder, but still the same error.

I will try your Temp folder suggestion, sjef.

@CRAK
The users specified that they want it in Excel file. If I understand your suggestion, then I just send the HTML file? That is not going to work on my case.

My standard «approach» is: stuff Excel, just create a .csv file ;-)

I wish you are my manager ;-) Originally it was created in CSV, but I was told that it was not pretty

No luck with C:Temp either?

What is the intended result? What if you send the users a URL to the Domino server, and when they click it they get an Excel screen in the browser with the data they need? If they want to save the file, they can do that. Could that be the idea?

No luck with C:Temp either. Does it matter that the Excel version that I put on the server is 2003 version?

The intended result is an Excel file that is sent to users email.

I am not quite sure about the idea that you mention sjef. How do I start on doing that?

ok seriously yes that is the problem. I am using MS Excel 2003. The format is 43 instead of 56

You can develop a web agent that sends data to the user’s browser in «excel» format: html code that Excel interprets as a spreadsheet.

Example:
— http://www.botstation.com/code/view2excelweb.php
— http://www.codestore.net/store.nsf/unid/EPSD-559R3S/ (rather old, but explains it well)

The essential line is always this one:
      Print |Content-Type:application/vnd.ms-excel|

If the next line:
      Print |Content-Disposition: Attachment; filename=»|+filename+|»|
is left out, the browser embeds an Excel-object all by itself to display the data you send. You can apply colours using CSS.

The users specified that they want it in Excel file. If I understand your suggestion, then I just send the HTML file?

What the users mean is that they want the file opened/presented in Excel. They’re not interested in how things work «under the hood»!
You can still name the html file «.xls», or add a header to the file so Windows will know what to do with it.
My users asked for Excel just as well. None ever complained and I never had to negotiate the installation of MS Office on a Domino server.

Anyway, you’ve managed to have Excel installed. That was the biggest reason to find an alternative. There’s no reason now have this discussion! ;-)

Now it is not working again and I did not change a thing since my last change.

:scratching my head:

I’ve requested that this question be closed as follows:

Accepted answer: 0 points for coronoahcoro’s comment #38194248

for the following reason:

Find solution from the external link

No sir, sorry, but you’re not playing fair, and I can’t accept that you close this question like that. You didn’t know why you got the Automation object error, and that’s what we explained you all about. That problem was solved. The discussion that followed should have been in one or more separate questions.

The original question is about an automation error.
In http:#a38194206 the asker confirms that Sjef’s suggestion helped in solving that issue.

Appearently, the asker got then stuck on secundary issues and may have managed to solve those without further help, but we’re all familiar with EE’s set of rules aren’t we?

I recommend accepting http:#a38192236.

sovt

0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

1

18.10.2012, 13:03. Показов 21541. Ответов 20

Метки нет (Все метки)


Есть сервер, теперь на нем есть Excel 2003, на сервере есть агент, который делает Excel файлик.
Суть проблемы:
Запускаем агент получаем ошибку: «Cannot create automation object»
Перезагрузили сервак, запускаем все работает, файлик приехал по почте.
Допилили агент, запускаем и получаем: «Cannot create automation object» Оо
Перезапустили сервак, запускаем все работает, файлик приехал по почте.
Ничего с агентом не делали, запускаем и получаем: «Cannot create automation object» >_<

Третий раз ребутить не стали, нечали разбираться.
1. Процесса Excel не висит в системе, ок.
2. Файлы и сам Excel создаются и запускаются, ок.
3. Логи винды по данной тематике пустые.

Лотусовый лок показал на строкус кодом:

LotusScript
1
Set object = CreateObject("Excel.Application")

Будто OLE-класс не найден… Но такое только после успешной отработки агентом 1 раз, причем только после ребута.

На серваке Win2Kx64, Excel 2003 x32.
Если кто сталкивался или если кто знает особенности x64 и 32-битного Excel, подскажите пож-та, что это происходит вообще???

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



Kyzoryk86

0 / 0 / 0

Регистрация: 16.07.2007

Сообщений: 849

18.10.2012, 13:46

2

Бала такая же фигня, причем на клиенте тоже (в рамках одной сессии).
Как обычно тупять и глючат СОМ объекты не полностью подчищая за собой.

LotusScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Sub CloseMSobj(execName As String)
On Error Goto ErrH
Dim objs As Variant
Dim strSQL As String
Dim strWMI As String
strWMI = "winmgmts:"
strSQL = "Select * From Win32_Process "
strSQL = strSQL & {where Name = } & execName &{}
Set objs = GetObject(strWMI).ExecQuery(strSQL)
If Not objs Is Nothyng Then
Forall obj In objs
obj.Terminate
End Forall
End If
Quit:
Exit Sub
ErrH:
Resume Quit
End Sub

Код где то на этом форуме был. Убивает висящие процессы.

С ним работало нормально, пока на сервер не кинули битый excel файл, который повесил агент менеджер, после чего на сервер стал передавать txt предварительно сконвертированный на машине пользователи из excel.



0



yyrky

0 / 0 / 0

Регистрация: 23.08.2007

Сообщений: 364

18.10.2012, 13:47

3

может формировать excel файл с помощью xml? без оле

LotusScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Set ResStream=ns.CreateStream()
заполяем шапку xml
ResStream.WriteText(_
{<?xml version="1.0"?>}+el+_
{<?mso-application progid="Excel.Sheet"?>}+el+_
{<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"}+el+_
{xmlns:o="urn:schemas-microsoft-com:office:office"}+el+_
{xmlns:x="urn:schemas-microsoft-com:office:excel"}+el+_
{xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"}+el+_
{xmlns:html="http://www.w3.org/TR/REC-html40">}+el+_
{<Styles>}+el+_
{<Style ss:ID="Default" ss:Name="Normal">}+el+_
{<Alignment/>}+el+_
{<Borders/>}+el+_
{<Font x:CharSet="204"/>}+el+_
{<Interior/>}+el+_
{<NumberFormat/>}+el+_
{<Protection/>}+el+_
{</Style>}+el+_
.......



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

18.10.2012, 14:34

4

kizarek
Процесса в системе нет, это проверяли, да и на клиенте постоянно можно создать не один экземпляр Excel, это тоже проверено. И убиваю процессы немного иначе: вот так
yerke
Вот с XML не хочется возиться, ни времени ни желания особенного… Да и версии могут различаться.
.xls и .xlsx весьма различны…

Раньше эти отчеты делали только на клиенте, теперь один отчет они хотят получать раз в месяц.
Но вот такая вот засада…



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

18.10.2012, 15:59

6

Ну боян не боян)) не сталкивался просто)
Что-то похожее на правду, но когда выставили «Текущий пользователь», то после ребута теперь тоже не работает, совсем не работает.
Старт лотусового сервака происходит из под local System. Может есть еще советы?



0



0 / 0 / 0

Регистрация: 19.04.2009

Сообщений: 2,219

18.10.2012, 16:07

7



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

18.10.2012, 16:14

8

nvy
Думал, но не в этом году это будет.



0



1 / 1 / 0

Регистрация: 01.10.2006

Сообщений: 615

18.10.2012, 20:33

9

на сервере такая связка вообще валить сервер могет в легкую..
в свое время я не искал решений создания в екселе отчетов на стороне сревера, т.к. сервак падал откровенно..
отчеты были простые, то я посмотрел на то, как они выглядят в хмл (если в екселе сохранить отчет в формате xml, то не трудно понять как оно устроено) и создавал их в хмл формате с расширением xls, работало на ура



0



0 / 0 / 0

Регистрация: 28.05.2005

Сообщений: 347

18.10.2012, 21:27

10

Цитата
Сообщение от savl

Что-то похожее на правду, но когда выставили «Текущий пользователь», то после ребута теперь тоже не работает, совсем не работает.

А попробуйте учетку админа указать явно. Так наверняка должно. «Текущий пользователь» не всегда помогает. Верно.

Или создать спец юзера с админскими правами и им запускать. Тогда автором создаваемого EXCEL файла будет этот пользователь.



0



0 / 0 / 0

Регистрация: 13.10.2005

Сообщений: 848

18.10.2012, 22:31

11

Цитата
Сообщение от savl

Вот с XML не хочется возиться, ни времени ни желания особенного… Да и версии могут различаться.
.xls и .xlsx весьма различны…

Версии здесь не при чем. Пишите в xml (http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats), один раз разберетесь, потом забудете про тормоза и проблемы OLE MS Office.



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

21.10.2012, 10:01

12

NetWood, не помогло… Какая-то фигня…

oshmianski2
И как потом xls сделать? если просто переименовать, то сорри, будет ругаться при открытии, что тоже не надо.

Kee_Keekkenen
На другом сервере все крутиться и проблем нет, тут дело в чем-то другом. Сам все пути и имена файлов прописаны жестко.
А у меня тут скрипт полуавтомат, сам выбирает что и как делать… Может и в этом проблема.



0



0 / 0 / 0

Регистрация: 28.05.2005

Сообщений: 347

21.10.2012, 10:47

13

Цитата
Сообщение от savl

не помогло… Какая-то фигня…

А сервер часом не терминальный? И как на него ставили домино и Excel? Если под терминалом и криво, то допускаю такие коленца.



0



0 / 0 / 0

Регистрация: 13.10.2005

Сообщений: 848

21.10.2012, 10:55

14

Цитата
Сообщение от savl

И как потом xls сделать? если просто переименовать, то сорри, будет ругаться при открытии, что тоже не надо.

Можно делать двумя способами:
1) выгружать данные в ЧИСТЫЙ xml, создавать xsl-файл и через xslt получать xml MS Excelя.
2) сразу писать xml с разметкой MS Office Open xml. Тут xml сразу можно открыть MS Excelем, никакой xsl не нужен.



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

21.10.2012, 10:57

15

NetWood
Удаленный, ставили через подключение по teamviewer.
Насчет кривизны ставки не скажу, поставили только 2 компанента word и excel.

Сейчас одну вещь проверим, после этого возможно все пройдет



0



0 / 0 / 0

Регистрация: 23.08.2008

Сообщений: 6,252

21.10.2012, 13:09

16

когда-то делал так…
xml:<!—shcode—><pre><code class=xml><priceitem>
<art>LBC-1</art>
<grp> Материалы для оформления СТО </grp>
<prodname>Лайтбокс формованный</prodname>
<price>4063</price>
<quantity>343</quantity>
</priceitem>
<priceitem>
<art>DS-2</art>
<grp> Материалы для оформления СТО </grp>
<prodname>стойка</prodname>
<price>6000</price>
<quantity>30</quantity>
</priceitem>[/CODE]
шаблон для хухеля:<!—shcode—><pre><code class=xml><?xml version=»1.0″ encoding=»UTF-8″?>
<xsl:stylesheet
xmlns=»urn:schemas-microsoft-com:office:spreadsheet»
xmlns:xsl=»http://www.w3.org/1999/XSL/Transform»
xmlns:msxsl=»urn:schemas-microsoft-com:xslt»

xmlns:o=»urn:schemas-microsoft-com:office:office»
xmlns:x=»urn:schemas-microsoft-com:office:excel»
xmlns:ss=»urn:schemas-microsoft-com:office:spreadsheet»
xmlns:html=»http://www.w3.org/TR/REC-html40″
version=»1.0″>
<xsl:strip-space elements=»*»/>
<xsl:output indent=»yes»/>
<xsl:template match=»/»>
<xsl:processing-instruction name=»mso-application»>progid=»Excel.Sheet»</xsl:processing-instruction>
<Workbook
xmlns=»urn:schemas-microsoft-com:office:spreadsheet»
xmlns:o=»urn:schemas-microsoft-com:office:office»
xmlns:x=»urn:schemas-microsoft-com:office:excel»
xmlns:ss=»urn:schemas-microsoft-com:office:spreadsheet»
xmlns:html=»http://www.w3.org/TR/REC-html40″>
<DocumentProperties xmlns=»urn:schemas-microsoft-com:office:office»>
<Title>test</Title>
</DocumentProperties>
<Worksheet ss:Name=»Test»>
<Table x:FullColumns=»1″ x:FullRows=»1″ ss:DefaultColumnWidth=»51.326732673267323″
ss:DefaultRowHeight=»12.831683168316831″>
<xsl:apply-templates
select=»descendant::document/@* | descendant::document/node()»/>
</Table>
</Worksheet>
<WorksheetOptions xmlns=»urn:schemas-microsoft-com:office:excel»>
<FitToPage/>
<Print>
<FitHeight>1</FitHeight>
<ValidPrinterInfo/>
<PaperSizeIndex>9</PaperSizeIndex>
<Scale>100</Scale>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Workbook>
</xsl:template>
<xsl:template match=»priceitem»>
<xsl:element name=»Row»>
<xsl:for-each select=»descendant::text()»>
<xsl:element name=»Cell»>
<Data ss:Type=»String»>
<xsl:apply-templates select=».»/>
</Data>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>[/CODE]



0



0 / 0 / 0

Регистрация: 27.10.2011

Сообщений: 2,124

21.10.2012, 13:43

17

Да вот разобрались, классика жанра: «Горе от ума».
Агент должен был работать на сервере, поэтому перед тем как его выставить Enable я его проверял.
Запускал по кнопке, через RunOnServer. Таким образом работает только один раз.
Админ, запустил через консоль, все отработало. Попробовали через консоль еще раз: ошибка доступа к файлу.
Тут понятно, процесс не закрыл, но сам факт 2 раза подряд Excel создался.
Сделали агент на запуск каждые 30 минут, все работает как часы.
Стыд и позор моим познаниям :(

Всем спасибо за помощь и желание помочь, данный механизм я переведу на java, но чуть позже.



0



0 / 0 / 0

Регистрация: 28.05.2005

Сообщений: 347

19.01.2014, 16:21

18

В копилку знаний. Намедни, ни с того ни с сего, перестал работать Excel DCOM на одном сервере с ошибкой Cannot create automation object. В логах вижу невозможность подключения к серверу Domino. Стал разбираться. Оказалось, что поменяли имя хоста на Сервере, а в настройках Domino нет. Итого, для правильной работы с DCOM, кроме настроек dcomcnfg, должны совпадать:
1. имя хоста в настройках WIN
2. в закладках Сервер/Основные/Полностью определенное имя узла Интернета
3. и Сервер/Порты/Сетевые порты/TCPIP сетевой адрес.
Такие дела.



0



0 / 0 / 0

Регистрация: 07.02.2106

Сообщений: 812

20.01.2014, 10:49

19

Уже сколько писали про то, что MS Office и сервер — вещи не совместимые, но продолжаем есть кактус…

Вопрос я так понимаю уже решен, но несколько заметок на будущее:

1. ВСЕГДА, до вызова CreateObject пробуйте получить объект с помощью GetObject.
2. Можно легко принтами LS создать XML файл Excel. Немного разобраться, там только «шапка» файла, всё остальное вообще примитивно. Можно использовать заготовку сделанную с помощью самого Excel.
3. Excel на ура открывает обычные HTML фалы, даже если вы их переименуете в XLS.
4. Apache POI и куча других библиотек построенных на аналогичной технологии или поверх того же POI.



0



0 / 0 / 0

Регистрация: 07.02.2106

Сообщений: 116

04.06.2014, 13:55

20

Цитата
Сообщение от savl

Да вот разобрались, классика жанра: «Горе от ума».
Агент должен был работать на сервере, поэтому перед тем как его выставить Enable я его проверял.
Запускал по кнопке, через RunOnServer. Таким образом работает только один раз.
Админ, запустил через консоль, все отработало. Попробовали через консоль еще раз: ошибка доступа к файлу.
Тут понятно, процесс не закрыл, но сам факт 2 раза подряд Excel создался.
Сделали агент на запуск каждые 30 минут, все работает как часы.
Стыд и позор моим познаниям

Всем спасибо за помощь и желание помочь, данный механизм я переведу на java, но чуть позже.

Приветствую, Savl! Вы уже перенесли его на Java? Дело в том, что у меня этот вопрос висит долго. Очень долго мучаюсь с Set Client = CreateObject(«MSSOAP.SoapClient30»)
Вычитал весь инет. Никак не получается. Нужен ХЭЛП



0



Понравилась статья? Поделить с друзьями:
  • Lotro ошибка 201
  • Lotro failed to queue for server 0x80004005 как исправить
  • Lotro directx error windows 10
  • Lost via domus ошибка initialization of ageia physx failed
  • Lost planet 2 xlive dll ошибка