I have an application that when run in debug on my local machine has no problem opening this .dot file. But I've copied my application to a live server and when testing the app I get the following error message when trying to open the .dot file. This file is generated on a button click event and copies information from the system and pastes it into bookmarked sections on the template. The error is-
"ERROR: Cannot generate call sheet - Word was unable to read this document. It may be corrupt. Try one or more of the following: * Open and Repair the file. * Open the file with the Text Recovery converter."
The server has MS Word 2007 installed. Has anyone ever experienced this before, or are there any known workarounds that will correct this for me?
Related
I was working on a project on Visual Studio when my computer froze to the point I had to manually shut it down while having a .cs file unsaved.
When restarted, I got this error message when trying to open the .cs file: Error message
I tried to open the file as a text file, but it seems empty.
Also a TMP file has been created in the project directory. This related .cs file is the only one that won't open. Files in directory
All I want is not to lose its content. If there would be just a way to get the code back somehow, it would be perfect.
Thanks a lot!
Whenever I attempt to read a PDF via OCR, it works correctly when running locally on my development machine, and all text parses correctly. However, the same code (and same license) in our remote server is reading blank text.
In the screenshot below, this is a remote debugger attached to the server and while I've confirmed it does read the file correctly (into fileBytes), invoking ReadPdf reads an empty string for text and finds no pages.
I'm not sure what can cause. I have checked folder permissions in Temp, set a custom temp directory, and still it reads blank. It also shows the same behavior when reading TIFF files (ReadMultiFrameTiff(...)) even when a file path is used in the parameter.
Note: PdfReader is another library that is only used to get the page numbers.
Thanks!
In this case, the solution was updating the Visual C++ runtimes (both x86 and x64) on the remote server. Apparently the remote server did not have the latest version installed.
These other suggestions were from their support ticket that I had tried prior to updating the runtimes:
Please also set an installation path that has full permissions to the IIS user: https://ironsoftware.com/csharp/ocr/object-reference/html/T_IronOcr_IronOcrInstallation.htm
It could also be that something could be missing in the DLL assemblies. Please try to clear all cache and temp folders, then download the package again into a CLEAN app.
I am not able to open .xls file after last Excel update. When I double click on file, Excel starts but do not show any message.
In the past it showed "The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" and I was able to open it.
I am generating this file with C# and xsl stylesheet. When I open file in Notepad++, add space somewhere and save it - file is suddently possible to open.
How to fix this? Where can be a problem?
Thank you for help.
I developed a winforms application using C# in .NET 4.0, in which end user selects an input Excel file. The program then generates an output Excel file with extra cells based on business logic of my application.
After selecting the input file and run my application, If i open any other excel sheets on my machine, then i see the output excel file being still written in Read Only mode and if i close the opened excel file then my application is throwing an error.
How to stop the read only excel sheet getting opened before the entire output is completely written?
My task is to extract information from ppt file and compare with another ppt file. I have to use windows platform so i used excel and powerpoint's COM object.
After developing and testing the code in my computer when i exported the file into another computer it just failed. I started to debug in that file, and surprisingly debug was successful from first to last but as soon as click on the executable it fails.
I am totally *ucked up now cause inspite of updating excel dll files into those computers (which will serve the com support) it's not working. In every pc it gives different error message. I don't wanna work COM object anymore. It *ucks.
Can anyone suggest me any open source alternative in which i can read and extract information from Excel and Powerpoint files (both 2003 and 2007 format) ???
My preferred language is c# ........I got an paid solution (aspose) but i don't wanna go for that.
Any help will be appreciated. Just suggest me how can i deal with office files assuming ms office is not installed in my computer.
NPOI works well for Excel; I only know to use the built in, MS object library for PPT files.