diff --git a/README.md b/README.md new file mode 100644 index 0000000..650766b --- /dev/null +++ b/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] + diff --git a/main.cpp b/main.cpp index bca8b13..a3e2470 100644 --- a/main.cpp +++ b/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();