Archive for the 'Product Development' Category

Disable debug build assertion warning in firefox

Sunday, January 20th, 2008

Firefox debug version has a lot of assertion warnings.
I felt confused that they are not got fixed even in latest version 3
A way to disable the warning is here:

Tips: get the filename of current exe file or dll

Wednesday, October 3rd, 2007

It is good to keep some programming tips we used.
To get the filename of the application, most of the time you can call:
sFileName := Application.ExeName; // or sFileName := ParamStr(0);

A design for large scale URL or html to image system

Saturday, January 27th, 2007

Htmlsnapshot is a component to convert html or url to image. It can be used to build large scale URL to image conversion system. Here, the large means the system is designed to convert millions of URLs to image in the future.
My recommendation for making a robust system is to use process based method.  There are […]

Tutorial: how to convert mp3 to swf and put it on your website with mp3 stream creator.

Sunday, January 21st, 2007

You may have a favourite song want to share with your friends or customers etc on the internet. They can listen to the music in internet explorer or firefox without installing any music player.
MP3 Steam Creator is designed for such purpose. It creates streaming Flash audio from mp3 file on the fly. And it also supports batch […]

Convert VML To image

Wednesday, August 9th, 2006

VML is a kind of vector based graphic format.
html snapshot can convert VML to image like jpg, tiff etc. 
In Win2003, there is an “IE enhanced security” component which may restrict some behaviour of rending vml to image.  

FAQ: run regsvr32.exe failed in Vista.

Sunday, June 11th, 2006

When I first try to register our ActiveX component such as htmlsnapshot, an error is shown,”DllRegisterServer in xxxx.dll failed.Return code was:0×80070005″.
0×80070005 means “Access Denied”, but I’ve been an administrator. I think this is related to the new security model in vista.

Licensing models

Saturday, June 3rd, 2006

We have been asked about licensing models by some customers. Here are some clarifications.
For end-user products:
Single user license: the license is applicable when only one user will use it.
Site license: the license is applicable when the product will be used by a group of people in a company.
 

Html Snapshot update.

Saturday, March 25th, 2006

When converting html to image, html snapshot will hold a bitmap in memory.
Some html will result a large image which will use a large amount of memory.

Get html snapshot now

Sunday, March 19th, 2006

If you are a developer that is looking for one the solution for the following tasks, then you come to the right place:

php script that will take screen shot of website
convert html text into an image in asp.net
convert html to image
html to image conversion in asp.net, .net
html to jpeg converter
web site to thumbnail in C#
capture html page in […]

PDF security new method

Saturday, March 18th, 2006

We added a method to PDF security.
IsEncrypted(String file)
 This function will return 1 on an encrypted PDF, 0 on an unencrypted one. It will return negative  if there is any error.
 

Javascript in PDF

Wednesday, March 15th, 2006

PDF file format supports javascript. The script can access the pdf document object model like the HTML DOM.
When doing pdf encryption or decryption, it is necessary to keep the javascript information.

Tip on using html to image

Friday, March 3rd, 2006

You may have a lot of html files to convert to image. It is very easy to do it with html to image.
In your Windows explorer, do a search for the html files in some folder on your disk. Explorer will list all the html files in the folder including sub folders.

MSI installer on demand

Monday, February 20th, 2006

The shortcut created by MSI installer may be a GUID, not directly points to an executable.
You can have a look at the word or excel shortcut if they are on your desktop.
The magic behavior of MSI is that if it finds some dependency is missing. It will run the setup application again. That is so […]

A trick on converting html with flash to image

Friday, February 17th, 2006

Normally when a html page is fully loaded, there will be an event generated by web browser.   
Pages with flash movie can be different. Since flash movie has a feature that loads itself from servers. With this feature, it is hard to tell when the flash movie has been fully loaded. The web browser first downloads a […]

How to register Active TTS with your code

Thursday, February 16th, 2006

After purchase, there will be a code sent to you via email. Normally the order email will be sent in several hours. If you don’t receive it, please check your spam folder (sometimes, it may happen). If it is not there, please send email to us. We will help check the status.

Use Active Audio Play Object in C#

Wednesday, February 15th, 2006

Our Audio Record component has  simple playback functions for mp3, wma, ogg or wave files.
You can use play object in C# easily like the record object since it is a standard COM object like the record one.

Html Snapshot Sample in Windev

Monday, February 13th, 2006

WINDEV, a powerful IDE, lets you build strategic projects easily and quickly thanks to its total integration, ease-of-use and cutting-edge technology.
Support .Net, Java code and more!
I don’t use Windev before. This Windev example is kindly provided by one of our customers.

Track bugs by reproduction

Saturday, February 11th, 2006

Software always has “bugs”. This is because the software running environment varies a lot. You may use a computer which installs incompatible programs, or you may lose some dependency DLLs that the program requires, or the software developer like us didn’t consider carefully on certain scenarios. Don’t worry about bugs too much. We will find way […]

Html To Image: GetImageBytes method

Friday, February 10th, 2006

Some times you may not want to write the image converted from html page to an image file. You may want to write the image data to another place like a network stream or a database, etc.
GetImageBytes is designed for this kind of scenerio. It is used to do in memory compression of the bitmap […]

Redistribute html to image

Monday, February 6th, 2006

After integrating html snapshot with your application, the next thing may be redistributing it so that every user of the app. can convert html to image by installing your app.
For registered users, it’s totally free to redistribute the htmlsnap2.dll.
Since htmlsnap2.dll is an ActiveX server, it must be registered like any other ActiveX component on […]

Another html to image note

Sunday, February 5th, 2006

When doing html to image conversion with html snapshot, the image will be rendered with current display context.
So to achieve the best image quality, the display mode needs to be in true color mode, either 24 or 32 bits. Almost every video card can support the above mode nowadays.
The other thing related is […]

One html to image note

Saturday, February 4th, 2006

Currently html snapshot converts the whole html document into an image.
Html document may be very large so the resulted image will be large as well. If the video card ram memory on the machine is low, the bitmap image may not be able to be held for rendering. So it will lead to a snap […]

Multithreaded Html to Image

Friday, February 3rd, 2006

Html snapshot ActiveX is a thread safe COM component. It uses single apartment COM threading model. So if you want to use multiple instances of html snapshot in several threads, you can create work threads and in each work thread create the html snapshot object, then you can convert html to image in the threads.
 

html to fax with html snapshot

Thursday, February 2nd, 2006

Some people may want to fax a html document in their application. First it is necessary to convert the html document into image that the fax driver can understand. Fax machines typically support TIFF format which supports multiple encoding scheme. Html Snapshot has full support for TIFF encoding. It supports LZW, CCITT3, CCITT4 and RLE (Pack […]

Text to speech in IIS

Wednesday, February 1st, 2006

Some customers want to convert text to audio in web sites with Active TTS. They may use ASP, ASP.Net as program languages and use IIS as the web server.
If they query the voice installed on the system in such script languages, they will find there are only SAPI4 voices listed. The reason behind it is […]

JPEG to html

Monday, January 30th, 2006

Some times I saw some visitors to our web site by search for “JPG to html”.
We don’t have a jpg to html product. What we have is html to image solution including end-user product Html To Image and development tool Html Snapshot. Their function is to convert html to image such as JPG, PNG, TIFF […]

Using Active TTS in C#

Wednesday, January 25th, 2006

Active TTS is a standard COM component that is supported by .Net framework.
 

TTS on Windows

Tuesday, January 24th, 2006

 

  

Make an audio recorder with voice activity detection

Monday, January 23rd, 2006

I was often asked about a question about Active Audio Record component: Can I detect the input audio level without start recording?
The answer is NO. The reason is that if the recording is not started, sound card doesn’t sample any input signal then no audio level can be returned.

Convert html to image in IIS

Sunday, January 22nd, 2006

This article will discuss how to use html snapshot to convert html to image (JPG, TIFF, GIF, PNG and BMP) under IIS (with ASP or ASP.net)
First, we will discuss IIS 5.0 on Windows XP.