myLittleWriter
Methods and properties
Manual
Download the manual (.chm format) to have a full description of all properties and methods of myLittleWriter by clicking on the icons below.
.NET Component Installation (.NET, ASP.NET)
Copy myLittleWriter.dll into C:\Inetpub\wwwroot\bin\ or into your web application bin folder.
Add reference to myLittleWriter.dll in your Visual Studio project if you have one.
Scriptlet Component Installation (classic ASP)
myLittleWriter requires JScript Script Engine v5.5 (or further) to work. Script Engine v5.5 is implemented with Microsoft Internet Information Services 5.0.
myLittleWriter is written as a script-component; so you can use if even if you are not allowed to install component on your web server.
If you have the rights to register components on the server, then register myLittleWriter as all other component :
- Copy myLittleWriter.wsc file to your desired location on the server (\WINNT\SYSTEM32 for instance).
- Right click myLittleWriter.wsc file and choose Register from the pop-up menu. You can also type from a command prompt the following line :
regsvr32.exe myLittleWriter.wsc
Using the component with ASP.NET/C#
<%@ import Namespace="MyLittleWriter" %>
<script runat="server">
void Page_Load(Object sender, EventArgs evArgs) {
MyLittleWriter.RtfFile oMlw = new MyLittleWriter.RtfFile();
MyLittleWriter.Color oRed = new MyLittleWriter.Color(255, 0, 0);
...
}
</script>
Using the component with ASP/VBScript
If the .wsc component is registered then you will instantiate it as a regular component :
<%
Dim mlwObj
Set mlwObj = Server.CreateObject("myLittleWriter.wsc")
%>
If not, then you can use its absolute filename :
<%
Dim mlwObj
Set mlwObj = GetObject("script:c:\mylittletools\myLittleWriter.wsc")
%>
or easier with Server.MapPath method (if the component file (.wsc) and the .asp file are in the same folder) :
<%
Dim mlwObj
Set mlwObj = GetObject("script:" & Server.MapPath(".\myLittleWriter.wsc"))
%>