I wrote a dll in C# looking like this:
public void Start()
{
m_tkWriter = new Toolkit();
m_tkWriter.OpenOutputFile( "c://test_pdf//test.pdf" );
}
public void End()
{
m_tkWriter.CloseOutputFile();
m_tkWriter = null;
}
public void PrintTextBlock( string font, float fontsize, float length, float width, string text, short justification )
{
y_current -= m_tkWriter.HeightPrinted;
m_tkWriter.PrintMultilineText( font, fontsize, (x_current+LeftMargin), y_current-fontsize, A4X-(RightMargin+LeftMargin), (A4Y-(TopMargin+BottomMargin)), text, justification );
while( m_tkWriter.ClipText != "" )
{
y_current = A4Y;
m_tkWriter.NewPage();
m_tkWriter.PrintMultilineText( font, fontsize, (x_current+LeftMargin), (y_current-TopMargin)-(fontsize), A4X-(RightMargin+LeftMargin), (A4Y-(TopMargin)), m_tkWriter.ClipText, justification );
if( m_tkWriter.ClipText == "" )
y_current -= TopMargin;
}
}
and I am using it (or should be using it) in a regular asp website, like this:
PDF.Start
PDF.PrintTextBlock CStr(vcharFontNameText), CDbl(intFontSizeText), 500.0, 500.0, CStr(vcharQuestion2), 0
PDF.End
PDF.Start runs ok, so it can't be that it does not find the dll, but the PrintTextBlock function gives me an error that reads roughly translated to invalid procedure or method.
Where am I doing wrong?