Browse Source

Add Readme

xlsxtoXmlConverter
nasiCurious 2 years ago
parent
commit
6152c2dd8a
  1. 50
      README.md
  2. 14
      main.cpp

50
README.md

@ -0,0 +1,50 @@
# Xlsx to Xml Converter
This program convert Xlsx File to Xml.
In this Version u should take xlsx File and xml pattern in build folder then run the project. The outPut will generate in Build Folder.
It is written by Qt.
## Acknowledgements
- this is help u to create xml file easily
- The Xlsx should have one sheet
## API Reference
#### how Prepare it to run?
```http
in main part of Program
convert.initPath(ExcelFileName, PatternFileName, "");
like:
convert.initPath("BPresetValue.xlsx", "Pattern.xml", "");
```
#### Get item for : initPath
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `xlsxPath` | `QString` | **Required**. Your API key |
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `patternFilePath` | `QString` | **Required**. Your API key |
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `outputFilePath` | `QString` | **Required**. this version save OutPut in Build Folder Of Project |
## Documentation
[Documentation](https://linktodocumentation)
## Authors
- [N.Heydari]

14
main.cpp

@ -6,7 +6,21 @@ int main(int argc, char* argv[])
QCoreApplication a(argc, argv);
XlsxXmlConverter convert;
QString sourceXls;
QString patternXML;
//if(argc == 2)
//{
//sourceXls = patternXML = argv[1];
//}
//if(argc == 3)
//{
//sourceXls = argv[1];
//patternXML = argv[2];
//}
convert.initPath("BPresetValue.xlsx", "Pattern.xml", "");
//convert.initPath(sourceXls, patternXML, "");
convert.readXlsx();
convert.readPattern();
convert.wrtiteXMl();

Loading…
Cancel
Save