Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receipt Template XML Elements

Status
Not open for further replies.

gillesnebel

Programmer
Mar 22, 2005
13
0
0
CH
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top