forked from joniles/mpxj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
howto-com.html
118 lines (111 loc) · 5.78 KB
/
howto-com.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.7.4
| Rendered using Apache Maven Fluido Skin 1.6
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Jon Iles" />
<meta http-equiv="Content-Language" content="en" />
<title>MPXJ – How To: Use MPXJ with COM</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
<script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script>
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7202224-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="topBarDisabled">
<a href="https://github.com/joniles/mpxj">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
alt="Fork me on GitHub">
</a>
<div class="container-fluid">
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h2>MPXJ</h2>
</div>
</div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2018-10-23</li>
</ul>
</div>
<div class="row-fluid">
<div id="leftColumn" class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">MPXJ</li>
<li><a href="index.html" title="Overview"><span class="none"></span>Overview</a> </li>
<li><a href="changes-report.html" title="Changes"><span class="none"></span>Changes</a> </li>
<li><a href="getting-started.html" title="Getting started..."><span class="icon-chevron-down"></span>Getting started...</a>
<ul class="nav nav-list">
<li><a href="howto-start.html" title="Get started"><span class="none"></span>Get started</a> </li>
<li><a href="java-versions.html" title="Java versions"><span class="none"></span>Java versions</a> </li>
<li><a href="howto-build.html" title="Build MPXJ"><span class="none"></span>Build MPXJ</a> </li>
<li><a href="howto-dotnet.html" title="Use MPXJ with .Net"><span class="none"></span>Use MPXJ with .Net</a> </li>
<li class="active"><a href="#"><span class="none"></span>Use MPXJ with COM</a>
</li>
<li><a href="howto-maven.html" title="Use MPXJ with Maven"><span class="none"></span>Use MPXJ with Maven</a> </li>
<li><a href="howto-convert.html" title="Convert files"><span class="none"></span>Convert files</a> </li>
</ul>
</li>
<li><a href="howto-read.html" title="How to read..."><span class="icon-chevron-right"></span>How to read...</a> </li>
<li><a href="howto-write.html" title="How to write..."><span class="icon-chevron-right"></span>How to write...</a> </li>
<li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a> </li>
<li><a href="users.html" title="Users"><span class="none"></span>Users</a> </li>
<li><a href="roadmap.html" title="Roadmap"><span class="none"></span>Roadmap</a> </li>
<li class="nav-header">Project Documentation</li>
<li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a> </li>
<li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a> </li>
</ul>
<hr />
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
</div>
</div>
</div>
<div id="bodyColumn" class="span9" >
<div class="section">
<h2><a name="MPXJ_and_COM"></a>MPXJ and COM</h2>
<p>The .Net assemblies provided in the DLLs described <a href="howto-dotnet.html">here</a> are accessible from COM.
THis should allow you to, for example, write VBA code which utilises MPXJ functionality. To assist with this, type libraries
in the form of TLB files are provided in the lib.net directory for each of the DLLs distributed with MPXJ.
You will also need to register the MPXJ assemblies in order to use them from COM,
using the <a class="externalLink" href="http://msdn.microsoft.com/en-us/library/tzat5yw6(v=vs.110).aspx" target="_blank">regasm assembly registration tool</a>.
For your convenience two batch files have been provided in the lib.net directory: mpxj-register-assemblies.bat and mpxj-unregister-assemblies.bat.
These batch files will register and unreigster the MPXJ assemblies respectively. These batch files assume that regasm is available on the path.</p>
</div>
</div>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>Copyright ©2000–2018
<a href="http://mpxj.org">Packwood Software</a>.
All rights reserved.</p>
</div>
</div>
</footer>
</body>
</html>