infopath

Minimum C# code to extract from .CAB archives or InfoPath XSN files, in memory

不羁岁月 提交于 2019-11-29 03:48:05
Lately I've been trying to implement some functionality which extracts files from an InfoPath XSN file (a .CAB archive). After extensive searching around the internet, it seems that there is no native .NET API for this. All current solutions are centered around large libraries i.e. managed C++ which wrap up Cabinet.dll. All of this, sadly, falls foul of my companies "No third party libraries" policy. As of 2.0, .NET gained an attribute called UnmanagedFunctionPointer which allows source level callback declarations using __cdecl. Prior to this, __stdcall was the only show in town, unless you

DAutomation Barcode ActiveX在InfoPath中创建条码

*爱你&永不变心* 提交于 2019-11-28 18:05:58
当处理打印的InfoPath表单时,线性条码可用于自动输入数据并减少失误。在这个条形码实例教程中,可在设计模式下编辑购买请求模板,从而添加一个编码了参考编号的条形码。在文本中,我们将使用 IDAutomation Barcode ActiveX Control 来完成条形码的创建。 1、购买或下载Linear Barcode ActiveX Control and DLL的示例版本。 2、打开Microsoft® Office® InfoPath®。 3、打开Purchase Request Template。 4、选择design按钮,以输入设计模式。 5、选择Insert - More Controls。在自定义栏,选择Add or Remove Custom Controls。 6、从控件列表中,选择Barcode ActiveX Control。 7、在安装选项中,选择包含CAB文件的控件。 8、当询问是否指定一个绑定属性时,选择DataToEncode。 9、接下来,需要选择是否启用或禁用属性。如果不确定,请保持所有默认选项,然后选择Next。 10、为数据类型选择TEXT (String),然后选择Finish和OK。 11、此时,条形码控件出现在控件任务面板的自定义控件区域。在表单上创建一个用于插入条码的位置,并为条码的宽度和高度留出足够的空间。 12

Minimum C# code to extract from .CAB archives or InfoPath XSN files, in memory

随声附和 提交于 2019-11-27 17:51:35
问题 Lately I've been trying to implement some functionality which extracts files from an InfoPath XSN file (a .CAB archive). After extensive searching around the internet, it seems that there is no native .NET API for this. All current solutions are centered around large libraries i.e. managed C++ which wrap up Cabinet.dll. All of this, sadly, falls foul of my companies "No third party libraries" policy. As of 2.0, .NET gained an attribute called UnmanagedFunctionPointer which allows source level