gillesnebel
Programmer
Hi everybody,
Microsoft Retail Management System works with highly customizable XML Templates. The XML Template Language offers very interesting elements.
Now I want to create something similar for my little POS-Application in C#. The entire design and logical process of the receipt should comes from the XML-Definitions. The datas will be load from SQL-Server. If printing the receipt, XML will be read and the datas will be retrieved from SQL Server and all the placeholders in XML will be filled with data from SQL Server.
Does somebody knows if there are existing C# scripts or third parties for this purpose?
Thanks for any suggestion
Example of RMS working with conditionals and ifs:
<IF> <CONDITION> ShowStoreName </CONDITION>
<THEN>
<IF> <CONDITION> ShowOnLeft </CONDITION>
<THEN>
<MARGIN>
<LEFT> MarginLeft + TableWidth + WidthDelta </LEFT>
<RIGHT> MarginRight </RIGHT>
</MARGIN>
</THEN>
<ELSE>
<MARGIN> <LEFT> MarginLeft </LEFT> <RIGHT> MarginRight - TableWidth - WidthDelta </RIGHT> </MARGIN>
</ELSE>
</IF>
</THEN>
<ELSE>
<MARGIN>
<LEFT> MarginLeft </LEFT>
<RIGHT> MarginRight </RIGHT>
</MARGIN>
</ELSE>
</IF>
<TABLE>
<TOP> MarginTop </TOP>
<FONT> "MyWhiteFont" </FONT>
<HEADERSHADE> vbBlue </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> "^~" </ALIGNMENT>
<WIDTH> (PageWidth - TableWidth) * .95 </WIDTH>
<TEXT> "Show Vars" </TEXT>
</COLUMNHEADER>
</TABLE>
Microsoft Retail Management System works with highly customizable XML Templates. The XML Template Language offers very interesting elements.
Now I want to create something similar for my little POS-Application in C#. The entire design and logical process of the receipt should comes from the XML-Definitions. The datas will be load from SQL-Server. If printing the receipt, XML will be read and the datas will be retrieved from SQL Server and all the placeholders in XML will be filled with data from SQL Server.
Does somebody knows if there are existing C# scripts or third parties for this purpose?
Thanks for any suggestion
Example of RMS working with conditionals and ifs:
<IF> <CONDITION> ShowStoreName </CONDITION>
<THEN>
<IF> <CONDITION> ShowOnLeft </CONDITION>
<THEN>
<MARGIN>
<LEFT> MarginLeft + TableWidth + WidthDelta </LEFT>
<RIGHT> MarginRight </RIGHT>
</MARGIN>
</THEN>
<ELSE>
<MARGIN> <LEFT> MarginLeft </LEFT> <RIGHT> MarginRight - TableWidth - WidthDelta </RIGHT> </MARGIN>
</ELSE>
</IF>
</THEN>
<ELSE>
<MARGIN>
<LEFT> MarginLeft </LEFT>
<RIGHT> MarginRight </RIGHT>
</MARGIN>
</ELSE>
</IF>
<TABLE>
<TOP> MarginTop </TOP>
<FONT> "MyWhiteFont" </FONT>
<HEADERSHADE> vbBlue </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> "^~" </ALIGNMENT>
<WIDTH> (PageWidth - TableWidth) * .95 </WIDTH>
<TEXT> "Show Vars" </TEXT>
</COLUMNHEADER>
</TABLE>