Error: Can't create output file

Get technical support of UseOffice .Net in C# and VB.Net
edohi
Posts: 5
Joined: Wed May 26, 2021 3:02 pm
Contact:

Error: Can't create output file

Post by edohi »

Hi,
we are using UseOffice .Net ver. 5.0.1.29 to convert files to PDF.
We've noticed that the library started returning error number 2 and now the number 4, even though no Office package products were updated or uninstalled.
We followed step by step the instructions in the "How to install UseOffice .Net" documentation for Windows Server 2012 R2 and MsOffice 2013, but unfortunately the error "Can't create output file." persists for TEXT, HTML and DOC to PDF directions.
For the Excel files, the PDF conversion is working good.
This are some example for the text or html files conversion log:

Text File
Point 15 2021/05/11 16:46:11 Object Word.Application created successfully.
Point 14 2021/05/11 16:46:11 Start converting \\myServer\Folder\20210511-1646107942356-1748037.txt -> \\myServer\Folder\20210511-1646107942356-1748037.pdf
Point 14.15 2021/05/11 16:46:11 Opening document in MS Word
Point 14.21 2021/05/11 16:46:11Document :\\myServer\Folder\20210511-1646107942356-1748037.txt opened successfully!
Point 14.4 2021/05/11 16:46:11Object reference not set to an instance of an object.
Point 14.6 2021/05/11 16:46:11Object reference not set to an instance of an object.

HTML File
Point 15 2021/05/11 16:46:17 Object Word.Application created successfully.
Point 14 2021/05/11 16:46:18 Start converting \\myServer\Folder\EB_20210511-1646178723667-1748038.html -> \\myServer\Folder\EB_20210511-1646178723667-1748038.pdf
Point 14.15 2021/05/11 16:46:18 Opening document in MS Word
Point 14.21 2021/05/11 16:46:18Document :\\myServer\Folder\EB_20210511-1646178723667-1748038.tmp opened successfully!
Point 14.4 2021/05/11 16:46:18Object reference not set to an instance of an object.
Point 14.6 2021/05/11 16:46:18Object reference not set to an instance of an object.

I wanted to attach here some sample files, but I don't see how...
Oliver
Posts: 24
Joined: Wed Aug 19, 2020 11:59 am
Contact:

Re: Error: Can't create output file

Post by Oliver »

Hi.

Error number #2 - Can't create output file. Please check that you have permissions to write by this path or probably this path already used by another application

Error number #4 - MS Office isn't installed. The component requires that any of these versions of MS Office should be installed:2003, 2007, 2010, 2026, 2019.

If this direction (Excel to PDF) works, then this is a good sign! Such situations can arise if the access rights are set incorrectly. For example, for MS Excel you configured the ability to write the result to a folder, but for MS Word did not (txt to PDF, HTML to PDF)!

What I can offer you:

1. Download the latest version of UseOffice.Net from our website - https://sautinsoft.com/products/useoffice/download.php
2. Unpack the package (use_office_net.zip) and launch Demo.exe on server-side
3. Try to convert txt or html in manually mode.

So ... Did you get a result?

If "YES", that the problem with MS Office's permissions.
If "NO", that the problem with MS Office's installation.

By the way, I need to know the version of MS Office on your server.
P.S. Try to create the user "office_converter" and give it full access rights. And then, using our manual, enable this user to convert your files. It will be a superuser with no restrictions, as if he himself loads the office and converts files.
edohi
Posts: 5
Joined: Wed May 26, 2021 3:02 pm
Contact:

Re: Error: Can't create output file

Post by edohi »

Hello,

thank you for your answer.

For error #2, is there any other path that needs to have permission, beside C:\Windows\Temp, C:\Windows\syswow64\config, C:\Windows\syswow64\config\systemprofile, C:\Windows\syswow64\config\systemprofile\AppData and C:\Windows\syswow64\config\systemprofile\Desktop? For all these the user has modify rights.

For error #4, the version installed is Office Standard 2013, the machine is Windows Server 2012 R2.

All conversions (including Excel_to_Pdf) are done in the same folder, where the user has modify rights.

I have tried using the demo.exe app and it has converted all types (docx_to_pdf, doc_to_pdf, html_to_pdf, txt_to_pdf).
The user I use is an admin on the machine.

What else could I do/check?
Oliver
Posts: 24
Joined: Wed Aug 19, 2020 11:59 am
Contact:

Re: Error: Can't create output file

Post by Oliver »

Hi

The version of MS Office is correct. We support 2010,2013,2016,2019.
If the Demo.exe works fine - the UseOffice.dll must work also.
There is a video-manual: https://www.youtube.com/watch?v=SIDteyU ... 46&index=1
Try to look at this video and repeat on your server.

Thanks
edohi
Posts: 5
Joined: Wed May 26, 2021 3:02 pm
Contact:

Re: Error: Can't create output file

Post by edohi »

In the end we've changed the project to copy and convert the files locally instead of directly on the file-server. For now it seems to work, although I still receive the errors, but only in few cases. Will investigate more...
Oliver
Posts: 24
Joined: Wed Aug 19, 2020 11:59 am
Contact:

Re: Error: Can't create output file

Post by Oliver »

I'll try to help you with your investigation! Good luck
edohi
Posts: 5
Joined: Wed May 26, 2021 3:02 pm
Contact:

Re: Error: Can't create output file

Post by edohi »

I still have problems with the conversion of html files into pdf. Here's what the tracer wrote:

Point 15 2021/06/07 13:05:34 Object Word.Application created successfully.
Point 14 2021/06/07 13:05:34 Start converting d:\temp\1784158.html -> d:\temp\1784158.pdf
Point 14.15 2021/06/07 13:05:34 Opening document in MS Word
Point 14.16 2021/06/07 13:05:34Exception has been thrown by the target of an invocation.
Point 14.21 2021/06/07 13:05:34Document :d:\temp\1784158.tmp opened successfully!
Point 14.4 2021/06/07 13:05:34Object reference not set to an instance of an object.
Point 14.6 2021/06/07 13:05:34Object reference not set to an instance of an object.

Another case:

Point 15 2021/06/07 12:56:50 Object Word.Application created successfully.
Point 14 2021/06/07 12:56:50 Start converting d:\temp\1784562.html -> d:\temp\1784562.pdf
Point 14.15 2021/06/07 12:56:50 Opening document in MS Word
Point 14.16 2021/06/07 12:56:50Exception has been thrown by the target of an invocation.
Point 14.21 2021/06/07 12:56:50Document :d:\temp\1784562.tmp opened successfully!
Point 14.4 2021/06/07 12:56:50Object reference not set to an instance of an object.
Point 14.6 2021/06/07 12:56:50Object reference not set to an instance of an object.

Here's the html content of the first file:


<!-- utf-8 works for most cases --><!-- Forcing initial-scale shouldn't be necessary --><!-- Use the latest (edge) version of IE rendering engine
--><!-- Disable auto-scale in iOS 10 Mail entirely --><!-- Tell iOS not to automatically link certain text strings. --><!-- The title tag shows in
email notifications, like Android 4.4. --><!-- What it does: Makes background images in 72ppi Outlook render at correct size. --><!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]--><!-- Web Font / @font-face : BEGIN --><!-- NOTE: If web fonts are not required, lines 23 - 41 can be safely removed. --><!--
Desktop Outlook chokes on web font references and defaults to Times New Roman, so we force a safe fallback font. --><!--[if mso]>
<style>
* {
font-family: sans-serif !important;
}
</style>
<![endif]--><!-- All other clients get the webfont reference; some will render the font and others will silently fail to the fallbacks. More on
that here: http://stylecampaign.com/blog/2015/02/w ... -in-email/ --><!--[if !mso]><!--><!-- insert web font reference, eg: <link
href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> --><!--<![endif]--><!-- Web Font / @font-face : END
--><!-- CSS Reset : BEGIN --><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
/* What it does: Tells the email client that only light styles are provided but the client can transform them to dark. A duplicate of meta
color-scheme meta tag above. */

:root {
color-scheme: light;
supported-color-schemes: light;
}
/* What it does: Remove spaces around the email design added by some email clients. */
/* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */

html,
body {
margin: 0 auto !important;
padding: 0 !important;
height: auto !important;
width: 100% !important;
}
/* What it does: Stops email clients resizing small text. */

* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
/* What it does: Centers email on Android 4.4 */

div[style*="margin: 16px 0"] {
margin: 0 !important;
}
/* What it does: forces Samsung Android mail clients to use the entire viewport */

#MessageViewBody,
#MessageWebViewDiv {
width: 100% !important;
}
/* What it does: Stops Outlook from adding extra spacing to tables. */

table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
/* What it does: Fixes webkit padding issue. */

table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
/* What it does: Uses a better rendering method when resizing images in IE. */

img {
-ms-interpolation-mode: bicubic;
}
/* What it does: Prevents Windows 10 Mail from underlining links despite inline CSS. Styles for underlined links should be inline. */

a {
text-decoration: none;
}
/* What it does: A work-around for email clients meddling in triggered links. */

a[x-apple-data-detectors],
/* iOS */

.unstyle-auto-detected-links a,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
/* What it does: Prevents Gmail from changing the text color in conversation threads. */

.im {
color: inherit !important;
}
/* What it does: Prevents Gmail from displaying a download button on large, non-linked images. */

.a6S {
display: none !important;
opacity: 0.01 !important;
}
/* If the above doesn't work, add a .g-img class to any image in question. */

img.g-img+div {
display: none !important;
}
/* What it does: Removes right gutter in Gmail iOS app: https://github.com/TedGoas/Cerberus/issues/89 */
/* Create one of these media queries for each additional viewport size you'd like to fix */
/* iPhone 4, 4S, 5, 5S, 5C, and 5SE */

@media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
u~div .email-container {
min-width: 320px !important;
}
}
/* iPhone 6, 6S, 7, 8, and X */

@media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
u~div .email-container {
min-width: 375px !important;
}
}
/* iPhone 6+, 7+, and 8+ */

@media only screen and (min-device-width: 414px) {
u~div .email-container {
min-width: 414px !important;
}
}
</style><!-- CSS Reset : END --><!-- Progressive Enhancements : BEGIN --><style type="text/css">
/* What it does: Hover styles for buttons */

.button-td,
.button-a {
transition: all 100ms ease-in;
}

.button-td-primary:hover,
.button-a-primary:hover {
background: #555555 !important;
border-color: #555555 !important;
}
/* Media Queries */

@media screen and (max-width: 480px) {
/* What it does: Forces table cells into full-width rows. */
.stack-column,
.stack-column-center {
display: block !important;
width: 100% !important;
max-width: 100% !important;
direction: ltr !important;
}
/* And center justify these ones. */
.stack-column-center {
text-align: center !important;
}
/* What it does: Generic utility class for centering. Useful for images, buttons, and nested tables. */
.center-on-narrow {
text-align: center !important;
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
float: none !important;
}
table.center-on-narrow {
display: inline-block !important;
}
/* What it does: Adjust typography on small screens to improve readability */
.email-container p {
font-size: 17px !important;
}
}
</style><!-- Progressive Enhancements : END --><!--
The email background color (#eee) is defined in three places:
1. body tag: for most email clients
2. center tag: for Gmail and Inbox mobile apps and web versions of Gmail, GSuite, Inbox, Yahoo, AOL, Libero, Comcast, freenet, Mail.ru, Orange.fr
3. mso conditional: For Windows 10 Mail
--></head><body><p><font face='Verdana' size='4'><strong>FROM: </strong>no-reply@vacanzemare.com</font><br /><font face='Verdana' size='4'><strong>TO: </strong>ccc@xxx.com</font><br /><font face='Verdana' size='4'><strong>CC: </strong></font><br /><font face='Verdana' size='4'><strong>SUBJECT: </strong>Sole, mare e relax in Riviera del Conero!</font><br /><font face='Verdana' size='4'><strong>DATA: </strong>04/06/2021 23:15:20</font><br /></p><br /><br /><center role="article" aria-roledescription="email" lang="en" style="width: 100%; background-color: #eee;"><!--[if mso | IE]>
<table border="1" cellspacing="0" style="margin:5px">
<tr>
<td>
<![endif]--><!-- Visually Hidden Preheader Text : BEGIN --><div style="max-height: 0; overflow: hidden; mso-hide: all;" aria-hidden="true">Le tue vacanze sul mare Adriatico delle Marche saranno ancora piu speciali risparmiando con le nostre offerte!</div><!-- Visually Hidden Preheader Text : END --><!-- Create white space after the desired preview text so email clients don&rsquo;t pull other
distracting text into the inbox preview. Extend as necessary. --><!-- Preview Text Spacing Hack : BEGIN --><div style="display: none; font-size: 1px; line-height: 1px; max-height: 0px; max-width: 0px; opacity: 0; overflow: hidden; mso-hide: all;
font-family:
sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><!-- Preview Text Spacing Hack : END --><!--
Set the email width. Defined in two places:
1. max-width for all clients except Desktop Windows Outlook, allowing the email to squish on narrow but never go wider than 680px.
2. MSO tags for Desktop Windows Outlook enforce a 680px width.
Note: The Fluid and Responsive templates have a different width (600px). The hybrid grid is more "fragile", and I've found that 680px is a
good width. Change with caution.
--><div style="max-width: 680px; margin: 0 auto;" class="email-container"><!--[if mso]>
<table border="1" cellspacing="0" style="margin:5px">
<tr>
<td>
<![endif]--><!-- Email Body : BEGIN --><table border="1" cellspacing="0" style="margin:5px"><!-- 1 Column Text : BEGIN --><tbody><tr><td style="background-color: #ffffff; text-align: center; padding: 10px 0px;"><webversion style="color: #cccccc;"><a href="http://www.vacanzemare.com/index.php?op ... m=3453_140" style="font-family: 'Open Sans'; color: #079c90; font-size: 14px; text-decoration: none!important;">Webversion</a></webversion> <table border="1" cellspacing="0" style="margin:5px"><tbody><tr style="line-height: 0px;"></tr></tbody></table></td></tr><!-- 1 Column Text : END --><!-- Hero Image, Flush : BEGIN --><tr><td style="background-color: #ffffff;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... 202106.jpg" width="680" height="482" alt="vacanze mare 202106" style="width: 100%;
max-width: 680px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555; margin: auto;
display: block;" class="g-img"> </a></td></tr><!-- Hero Image, Flush : END --><!-- 1 Column Text + Button : BEGIN --><tr><td style="background-color: #ffffff;"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 25px; text-align: center; font-family: sans-serif; line-height: 1.7em; color: #079c90;"><p><span style="font-size: 24px;"><b>TRASCORRI L'ESTATE NEL MAGICO <br>SCENARIO DELLA RIVIERA DEL CONERO!</b></span></p><p style="margin: 20px 0px; text-align: center; line-height: 19px; color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style:
normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing:
0px;"><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing:
normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color:
#ffffff; float: none;">Non perdere le piu belle spiagge della <strong>costa delle Marche</strong>! <br>La Riviera del Conero, nella parte centrale del tratto costiero delle Marche, e sicuramente una delle zone piu ricche di <strong>meravigliose spiagge</strong> con <strong>incredibili scorci</strong>. <br>Scopri le piu belle, a pochi km da <strong>Porto Recanati</strong> e dai <strong>villaggi di Vacanze Mare</strong>!</span></p><p style="margin: 20px 0px; text-align: center; line-height: 19px; color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style:
normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing:
0px;"><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing:
normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color:
#ffffff; float: none;">Le tue vacanze in</span><span style="font-weight: 600; color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px;
font-style: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; background-color: #ffffff;">&nbsp;<strong>Riviera del Conero</strong></span><span style="color: #444444; font-family: 'Open Sans',
sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;"></span><span style="color: #444444;
font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: justify;
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;">saranno ancora piu speciali risparmiando con le nostre&nbsp;</span><strong><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px;
font-style: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; background-color: #ffffff;">offerte</span></strong><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size:
14px; font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;">! Scopri le&nbsp;</span><span style="color: #444444;
font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff;">offerte</span><span style="color: #444444;
font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: justify;
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;">&nbsp;che abbiamo in serbo per te e per il tuo soggiorno al&nbsp;</span><strong><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px;
font-style: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; background-color: #ffffff;">mare</span></strong><span style="color: #444444; font-family: 'Open Sans', sans-serif; font-size: 14px;
font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;">, il litorale delle&nbsp;</span><strong><span style="color: #444444;
font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff;">Marche</span></strong><span style="color:
#444444; font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align:
justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; float: none;">&nbsp;con le sue meraviglie ti aspetta.</span></p><p style="font-size: 15px;"><strong style="font-size: 14pt; color: #ffa100; display: block;">Scegli la migliore soluzione per te e compila la richiesta!</strong></p></td></tr><tr><td style="padding: 0 20px 20px;"><!-- Button : BEGIN --><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td class="button-td button-td-primary" style="border-radius: 4px; background: #FFA100;"><a class="button-a button-a-primary" href="http://www.vacanzemare.com/index.php?op ... mailid=140" style="background: #FFA100; border: 1px
solid #FFA100; font-family: sans-serif; font-size: 15px; line-height: 15px; text-decoration: none; padding: 13px 17px; color: #ffffff; display: block;
text-transform: uppercase;">Scopri di piu </a></td></tr></tbody></table><!-- Button : END --></td></tr></tbody></table></td></tr><!-- 1 Column Text + Button : END --><!-- Hero Image, Flush : BEGIN --><tr><td style="background-color: #ffffff;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... 2019-1.jpg" width="680" height="" alt="Offerta per Giugno sulla Riviera del
Conero" border="0" style="width: 100%; max-width: 680px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height:
15px; color: #555555; margin: auto; display: block;" class="g-img"> </a></td></tr><!-- Hero Image, Flush : END --><!-- 1 Column Text : BEGIN --><tr><td style="background-color: #ffffff;"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 40px; text-align: center; font-family: sans-serif; font-size: 15px; line-height: 1.7em; color: #555555;"><p><strong style="color: #ffa100;">VIVI TUTTA LA MAGIA DELLA RIVIERA DEL CONERO!</strong></p></td></tr></tbody></table></td></tr><!-- 1 Column Text : END --><!-- Hero Image, Flush : BEGIN --><tr><td style="background-color: #ffffff;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... conero.jpg" width="680" height="" alt="Offerta per Giugno sulla Riviera del
Conero" border="0" style="width: 100%; max-width: 680px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height:
15px; color: #555555; margin: auto; display: block;" class="g-img"> </a></td></tr><!-- Hero Image, Flush : END --><!-- 3 Even Columns : BEGIN --><tr><td align="center" valign="top" style="font-size: 0; padding: 10px; background-color: #ffffff;"><!--[if mso]>
<table border="1" cellspacing="0" style="margin:5px">
<tr>
<td valign="top" width="220">
<![endif]--><div style="display: inline-block; margin: 0 -1px; max-width: 220px; min-width: 160px; vertical-align: top; width: 100%;" class="stack-column"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 10px;"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="line-height: 0px;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... musone.jpg" width="200" height="" border="0" alt="Villaggio Residenziale Riva Musone" style="width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="center-on-narrow"> </a></td></tr><tr><td style="font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; padding-top: 10px;" class="stack-column-center"><p style="margin: 0; color: #037835; text-align: center;">Villaggio Residenziale<span style="font-weight: bold; display: block;">Riva Musone</span></p></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso]>
</td>
<td valign="top" width="220">
<![endif]--><div style="display: inline-block; margin: 0 -1px; max-width: 220px; min-width: 160px; vertical-align: top; width: 100%;" class="stack-column"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 10px;"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="line-height: 0px;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... conero.jpg" width="200" height="" border="0" alt="Giardini del Conero" style="width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="center-on-narrow"> </a></td></tr><tr><td style="font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; padding-top: 10px;" class="stack-column-center"><p style="margin: 0; color: #ffb71b; text-align: center;">Residence<span style="display: block; font-weight: bold;">i Giardini del Conero</span></p></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso]>
</td>
<td valign="top" width="220">
<![endif]--><div style="display: inline-block; margin: 0 -1px; max-width: 220px; min-width: 160px; vertical-align: top; width: 100%;" class="stack-column"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 10px;"><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="line-height: 0px;"><a href="http://www.vacanzemare.com/index.php?op ... =140"><img src="http://www.vacanzemare.com/images/newsl ... ionale.jpg" width="200" height="" border="0" alt="Villaggio Turistico Internazionale" style="width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="center-on-narrow"> </a></td></tr><tr><td style="font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; padding-top: 10px;" class="stack-column-center"><p style="margin: 0; color: #37b4e6; text-align: center;">Villaggio Turistico<span style="display: block; font-weight:
bold;">Internazionale</span></p></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso]>
</td>
</tr>
</table>
<![endif]--></td></tr><!-- 3 Even Columns : END --></tbody></table><!-- Email Body : END --><!-- Email Footer : BEGIN --><table border="1" cellspacing="0" style="margin:5px"><tbody><tr><td style="padding: 40px 10px; width: 100%; font-size: 12px; font-family: sans-serif; line-height: 18px; text-align: center; color: #fff; background:
#079C90;"><strong>Vacanze Mare</strong> - Via Scarfiotti 47, 62017 Porto Recanati (MC)<br>Tel. +39 071 9798567 | Fax +39 071 9798605 <br>info@vacanzemare.com <br><br><a style="text-decoration:none;" target="_blank" href="http://www.vacanzemare.com/index.php?su ... 140"><span class="acymailing_modify">Cancellati</span></a></td></tr></tbody></table><!-- Email Footer : END --><!--[if mso]>
</td>
</tr>
</table>
<![endif]--></div><!--[if mso | IE]>
</td>
</tr>
</table>
<![endif]--></center><img class="spict" alt="" src="http://www.vacanzemare.com/index.php?op ... subid=3453" border="0" height="1" width="50"> </body></html>
Last edited by edohi on Tue Jun 15, 2021 2:00 pm, edited 1 time in total.
edohi
Posts: 5
Joined: Wed May 26, 2021 3:02 pm
Contact:

Re: Error: Can't create output file

Post by edohi »

you just save the html content in file to reproduce the error
Oliver
Posts: 24
Joined: Wed Aug 19, 2020 11:59 am
Contact:

Re: Error: Can't create output file

Post by Oliver »

Hi. I have tested your files (#1, #2)... and you are right. The result is - "Can't create output file".

I'll try to explain where is a bug in this case...

As you know, UseOffice .Net is just a class library, it requires Microsoft Office installed.

UseOffice.Net is the intermediary between your files and MS Office.
When you upload an input file to UseOffice, it will call MS Office and delegate to it the handling of your files. In other words, the conversion takes place at the expense of MS Office .

The problem with your files is that MS Office cannot open them. UseOffice, in turn, reports an error!

Image

You can test this yourself on your own side. Just run MS Word and try to download the given files.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests