OK guys this is a single problem with two lines of thought at the moment…
I have a .NET application converted over from VB6. The old app used RTF text to enable formatting of text and thus the VB6 RichTextBox was used extensively. Simple printing was also accomplished using this control.
Problem is, VB.Net’s version of the RichTextBox has no built in printing function. This has left me a little stuck!
I have managed to import the old VB6 control into .NET and use that to print. However, this only works on my development machines – on all others it results in a ‘Class not licensed for use’ error. Don’t know why it’s ‘not licensed for use’ since it is already in use and working with the VB6 app?!?
Now I have managed to get past this error by exporting the entire of my Classes section of the registry onto the target machine – then importing a backup copy of that machines reg back over the top to restore the bits changed and to keep the target PC working! This is not an acceptable solution however since apart from being a rather dangerous exercise, this application is to be rolled out to 250 PC’s and the Classes bit of the registry is around 10MB in size.
So, I’m left with two options now...
1. What exactly is it in the registry that I need to resolve the problem. Where exactly will I find the Class licensing information? I have spent ages looking through it for bits that look like the may do it - but alas, no luck so far!![]()
2. An alternative function, control, or whatever that will print Rich Text fully formatted. I have briefly looked at the Crystal Reports that came with VS.NET but apart from not being able to work out how to use it – at least without having to link it to a datasource I still am none the wiser if it even supports RTF text!![]()
So, if anyone has any ideas about either of these options… please enlighten me!!! I’d be most grateful!
Thanks in advance.![]()


Reply With Quote