Fai la tua domanda

BinoyCherian's profile - attività

2020-03-18 11:21:02 +0200 received badge  Domande famose (source)
2019-10-08 09:09:28 +0200 received badge  Domande famose (source)
2019-07-18 15:29:32 +0200 received badge  Domande famose (source)
2019-07-11 10:12:41 +0200 received badge  Domanda notevole (source)
2019-06-14 23:27:05 +0200 received badge  Domanda notevole (source)
2019-06-14 23:27:05 +0200 received badge  Domanda gettonata (source)
2019-02-11 16:56:26 +0200 ha accettato una risposta Not able to launch soffice within an application on the iis server

Hi Team,

I have an c# application which calls the soffice. The code works perfectly on the IISExpress server on my local machine but it's the test server that fails and I couldn't identify the problem. But there is a similar question on stackoverflow as shared below

https://stackoverflow.com/questions/5...

As peer the analysis by an another developer, libreoffice accesses the folder location C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\LibreOffice and he proceeds to provide access to this folder for his profile on the server.

I wanted to check with you guys if this is really the issue and if there was a method possible to run the application programmatically on the iis test server without folder permissions. As per a team member, folder permissions on the server has to be avoided.

Please let me know if you need any other information.

Regards, Binoy

2019-02-11 15:30:55 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

@Mike, Thanks, it worked like a charm on my test server. I see what I was doing wrong, I saw the word "file" and imagine

2019-02-11 14:39:18 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

@Mike, I didn't ignore you at all, you have been helping me a lot :). I need to escape those quotes, I might have writte

2019-02-11 14:38:39 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

@Mike, I didn't ignore you at all, you have been helping me a lot :). I need to escape those quotes, I might have writte

2019-02-11 14:25:43 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

@Mike, Those quotes are to handle spaces in the filename or directory. I tried passing a file this time -env:UserInstall

2019-02-11 14:25:25 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

@Mike, Those quotes are to handle spaces in the filename or directory. I tried passing a file this time -env:UserInstall

2019-02-11 13:53:32 +0200 ha commentato una risposta Not able to launch soffice within an application on the iis server

Hello @Mike, I tried your suggestion with the string "-env:UserInstallation=C:\test\NPP\ --headless --convert-to pdf \"C

2019-02-07 04:01:46 +0200 received badge  Domanda gettonata (source)
2019-02-06 14:52:57 +0200 ha posto una domanda Not able to launch soffice within an application on the iis server

Not able to launch soffice within an application on the iis server Hi Team, I have an c# application which calls the so

2019-02-06 13:22:07 +0200 received badge  Entusiasta
2019-02-05 09:27:11 +0200 ha commentato una domanda How to start soffice using c#

Hey @Mike, thank you, You are right, this is a doppleganger, I'm gonna remove the question eod :), I didn't know how or

2019-02-04 16:02:38 +0200 ha modificato una domanda Having issues starting the soffice on a windows server

Having issues starting the soffice on a windows server Hi All, I am converting my office files to pdf using Libreoffice

2019-02-04 16:01:40 +0200 ha modificato una domanda Having issues starting the soffice on a windows server

How to start the latest 6.1.4 soffice using c# Hi All, I am converting my office files to pdf using Libreoffice and on

2019-02-04 14:54:37 +0200 ha modificato una domanda Having issues starting the soffice on a windows server

How to start soffice using c# Hi All, I am converting my office files to pdf using Libreoffice and on my local machine

2019-02-04 14:47:11 +0200 ha modificato una domanda Having issues starting the soffice on a windows server

How to start soffice using c# Hi All, I am converting my office files to pdf using Libreoffice and on my local machine

2019-02-04 14:47:11 +0200 received badge  Revisore (source)
2019-02-04 14:34:00 +0200 ha posto una domanda Having issues starting the soffice on a windows server

How to start soffice using c# Hi All, I am converting my office files to pdf using Libreoffice and on my local machine

2019-02-04 14:34:00 +0200 ha posto una domanda How to start soffice using c#

How to start soffice using c# Hi All, I am converting my office files to pdf using Libreoffice and on my local machine

2019-02-04 14:09:28 +0200 ha commentato una risposta How to convert doc to pdf using LO commandline

Thanks @Mike, I had a question I am configuring the libreoffice on the server and I could manually convert the docx to

2019-02-04 14:08:26 +0200 ha accettato una risposta How to convert doc to pdf using LO commandline

The string that I'm using to convert the documents is as below. I'm not sure if it's a problem with the parameters passed to soffice.

soffice --convert-to pdf --outdir C:\test\NPP\LOTestOutputs\ C:\test\NPP\MBI_CONVERSION_PRESETS.docx

Also tried:

soffice --convert-to pdf C:\test\NPP\MBI_CONVERSION_PRESETS.docx --outdir C:\test\NPP\LOTestOutputs\

I was able to execute a simpler command [soffice --convert-to pdf MBI_CONVERSION_PRESETS.docx] from the cmd prompt

I referred to a similar problem on Stackoverflow And I checked that my user account has administrator rights. And I am not sure why I cannot convert the document using libreoffice.

The libreoffice version : 5.4

The error read from the stream

{Error: Please verify input parameters... (SfxBaseModel::impl_store <C:\test\NPP\LOTestOutputs" -env:OOO_CWD=2C:\\Users\\dev\\source\\repos\\Converstion\\TestClass\\bin\\Debug/MBI_CONVERSION_PRESETS.pdf> failed: 0x81a)}

Hoping to get some tips to understand why the program gives this error

2019-02-04 14:08:26 +0200 received badge  Commentatore
2019-02-04 14:08:26 +0200 ha commentato una risposta How to convert doc to pdf using LO commandline

Thanks @Mike, I had a question I am configuring the libreoffice on the server and I could manually convert the docx to

2019-01-31 17:06:01 +0200 received badge  Domanda gettonata (source)
2019-01-31 13:59:19 +0200 ha accettato una risposta How can i get a watermark in my pdf's using LO commandline

I am generating Pdf's from office files, but I would also like to see if I could configure a watermark and if how how could I passed these parameters to my input file and the LO exe.

Thank you for your support as always.

Version of libreoffice currently being used: 6.0.6 but I might switch to the latest version soon.

2019-01-31 13:59:17 +0200 ha commentato una risposta How can i get a watermark in my pdf's using LO commandline

I am accepting this answer because it looks promising :)

2019-01-31 12:09:34 +0200 ha commentato una risposta How can i get a watermark in my pdf's using LO commandline

my program is calling the soffice.exe and passes some parameters. I am looking for something similar to first create a w

2019-01-31 12:03:53 +0200 received badge  Domanda gettonata (source)
2019-01-31 12:03:53 +0200 received badge  Domanda notevole (source)
2019-01-31 11:59:31 +0200 ha posto una domanda How can i get a watermark in my pdf's using LO commandline

How can i get a watermark in my pdf's using LO commandline I am generating Pdf's from office files, but I would also lik

2019-01-24 12:21:37 +0200 received badge  Domanda notevole (source)
2019-01-24 12:21:37 +0200 received badge  Domande famose (source)
2018-12-27 21:24:25 +0200 received badge  Domande famose (source)
2018-10-04 09:48:39 +0200 ha commentato una risposta How to run a single macro for all excel files

@Mike, I will try your suggestion and test. Thank you

2018-10-04 09:35:41 +0200 ha commentato una risposta How to run a single macro for all excel files

@Mike, Yes, i noticed that there was no splash but I miswrote my question above, I am looking for something that could h

2018-10-03 17:41:11 +0200 received badge  Domanda notevole (source)
2018-10-03 15:28:46 +0200 ha commentato una risposta How to run a single macro for all excel files

Yes, i noticed that there was no splash but I miswrote my question above, I am looking for something that could hide the

2018-10-03 14:44:08 +0200 ha accettato una risposta How to run a single macro for all excel files

Hi All,

Is it possible to run a single macro for all excel files and if so how. The macro scales the excel file to fit to single page. After which I plan to convert it to pdf using lo cli.

Currently the macro is inside the "My Macros and Dialog - > Standard -> Module1 -> Main". The conversion to pdf through lo cli works fine only for one document through which I saved the macro. I am looking for something that helps me to run the same macro for all files via cli.

Libre office version: 6.0.6

Macro has been recorded with libreoffice and can be seen below:

REM  *****  BASIC  *****

sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
vrem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:PageFormatDialog", "", 0, Array())

end sub