Convert Excel-XML to XLS - oracle

My task is to convert Excel .xls file to Excel-XML format file(here). Edit cell values and write it back to .xls.
Convert from xls to xml maybe can't be done automatically. Editing file is easy with XMLTABLE and XMLQUERY in Oracle. When I save XML content with XLS extension it give me Error:
The file you are trying to open MyFile.xls is in a different format than
specified by the file extension. Verify the file is not corrupted and
is from trusted source before opening the file. Do you want to open
the file now?
When I select "Yes" option file is opening and everything work fine. I want to avoid this Error/Warning message.
There is some way to convert Excel-XML file to other Excel's format and not xml? I know the problem is that I change only file extension without change format, but maybe there is solution hint excel to open file without Warning or convert to real xls.
Notes:
Error/Warning can be see displayed edit file content. Steps are: Open Excel file, Save as Excel XML(file is save with .xml extension), Close file, Rename file extension to .xls, Open file with Excel and Error is displayed.

Related

File encrypt by format

I am new to computers, and I want to know if there is a way to make files two-format-usable. For example, there is a jpg format file, but actually it is a docx format file, and we can decode it by changing the file format from .jpg to .docx. Can anyone help me? Thanks!!!
Changing the file extension does not change the file data or format. It does keep some programs from opening the file.
This is done often on .zip files, changing the file extension to something different. This just adds confusion, not security.
If you want security encrypt the file data with a key and use any extension you choose. The password can be something you enter on encryption and again of later opening that will decrypt the file.

How do I detect where is corrupted in a power point file?

I have a power point file(.pptx) generated by a program that copies xml files and content files in a slide to other slides. It simply extracts xml files and content files from original power point file and then copies xml files, finally compresses the files as a zip file and renames the file to xxxxx.pptx. (The xml files I mentioned here is, of course, about Office Open XML)
When I open this file in Keynote on Mac OS X, it works well. No error happened.
However when I use PowerPoint application on Mac OS X, the app says "PowerPoint found a problem with content in xxxxx.pptx"
I think there are differences between PowerPoint specs and Keynote specs, so I need to apply the generated pptx file to the PowerPoint specs.
But, the error does not say WHERE or WHAT ERROR IS OCCURRED, but says there are some errors in that file.
So I cannot look for where is damaged in the generated file!
How do I detect the errors in the file or validate the format of it?
I do not want to get 'restore tools' but 'error detection tools'.
I simply used Open XML SDK 2.5 Productivity Tool.
In my situation, it said the Content-Type of xml files was different from expected one when I opened the pptx file. Soon, it occurred to me I forgot to change the data in [Content_Types].xml
After I fixed it, the file is opened without problems now!!
This app also shows codes in C# and validate each xml files individually.
Download Link is here ->
https://www.microsoft.com/en-us/download/details.aspx?id=30425

SSIS how to save all files in UTF-8 format in a particular folder?

I have many files 100 + in a folder which particular package is giving as a output.
From this folder I am currently manually saving all files in UTF -8 format before giving them for load into SAP server. This I am doing manually , Opening file in notepad then click on Save as , select UTF-8 as encoding and then save it.
But to do this for more than 100 files is really very time wasting and also leads to some human error.
I am aware about Flat file destination encoding but that is not converting the files in UTF-8 format , If i select this encoding on flat file destination and write output , then when i open that file in notepad again and when i click on save as I should see UTF-8 as encoding , but it is showing me ANSI.
Any help will save much time..
You can do this using an 'execute process task'.
1. Create a powershell script that changes the encoding on each file:
2. Save this script in a directory that is accessible by the ssis service account.
3. Add an 'execute process task' to your control flow.
4. Set the appropriate configuration values.

How to convert ArcMap file to log file

I'm trying to use MCK(map comparison kit) but all I have right now is ArcMap file. According to the MCK user manual, it says MCK supports log file. So I tried to convert ArcMap to log file by renaming to ".log", but MCK shows that it is an empty log file.
So i was wondering what is the way to correctly convert ArcMap file to log file? Thanks!
This might be a bit late, but just in case:
I assume you have a Arc ASCII file, which is one of the file formats MCK supports. You can't simply convert ASCII file into log file, since log file only contains pointers to raster images of a certain theme. ASCII file contains much more, like headers and the actual data.
You can create a new log file in MCK by choosing New from the File menu in the Menu bar. This opens the Log File Editor, and there you can specify the contents of the log-file with an easy UI. There is an Import button, which allows you to import the ASCII files. If you have downloaded the MCK software, just see the User Guide that comes with it. It has the whole Log File Editor explained!

.vcf file not opening

I am trying to create a .vcf file programmatically in C#, and writing a bunch of strings in the correct format in that file. But when i try to open it manually, the following message appears. Could not start Microsoft Outlook.The file maynot exist, you may not have permission to open it, or it may be open in another program.
But when i create a text file manually write the same bunch of strings in the vcard format and change the extension to .vcf and then open the file, it opens properly with outlook
Any help!!!
You don't say so explicitly, so I have to ask: have you elimated all of the suggestions Outlook gives you? The file isn't currently still open with a lock by your program? The file permissions are such that it can be read by the outlook user? The file does exist?
This reply may help someone. I got a similar error, the problem for me was that there was no data in the vcf file. As soon as i printed the VCARD info after the headers (and then opened the resultant vcf file) the error disappeared.
My error
Verify you used CrLf for line terminiators in your code. If you use Environment.NewLine or just \n's, that may be the problem.
You probably saved the file as UTF-8 or Unicode. To test, open the file in VS in binary, delete the first three bytes and see if the file opens.
Had a very similar problem when constructing a .vcf file from a vCard string. The contact form would be completely blank when opening in Outlook. I solved the problem by converting the string to a UTF8 Encoded Byte Array.
byte[] vCard = System.Text.UTF8Encoding.UTF8.GetBytes(vCardString);

Resources