Main Forum > Tweaking.com Support & Help
Envelope Printer program not sending data to any printer
Shane:
--- Quote ---So there is your bug. Since I never print a picture, I would prefer that the bug be fixed.
--- End quote ---
Well even if you did print a picture I would still fix the bug :-D
I will dig in and try to find the bug and get a fix and a new version out on monday :-)
Also I just tried it and you are correct, since I can replicate it I can fix it :-)
Shane
Shane:
Fixed.
Now I just need you to test. I have attached the new exe. it is v1.4.2, extract it from the zip file and then replace the current exe of the program.
This was a odd bug and was actually in the vb6 runtimes and Windows API.
In the old version of the program I was calling "Printer.Print" to print out the text, nice and easy. Well in the newer versions I needed to be able to print Unicode characters (Such as Japanese and others) and "Printer.Print" doesn't handle it well. So instead I call a Windows API called TextOut
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145133%28v=vs.85%29.aspx
So this works fine. But here is where the bug is. When you print and use the logo with it the "Printer.PaintPicture" is called first (The logo prints first), then the call to TextOut (Which prints out the 2 addresses). But when you dont use the logo TextOut is called first and that is where it failed.
By simply adding in 1 line of code
Printer.Print " " (Printing a blank space)
It then works just fine without the logo. Seems to be a bug where you have to print something to the printer first BEFORE calling TextOut in Windows.
So it was just that 1 line of code to fix it. Test it out and let me know how it does for you :-)
Shane
rpesq:
Seems to work. But the exe, windows is asking whether I want to run it or not. Your previous Printer exe's, this did not require me to give such permission.
Shane:
They should have, the .manifest file in the program folder tells windows to ask to run it as an administrator. I only have that for people who need to load a picture file outside of their profile.
The exe doesnt control windows asking for permissions, the manifest file does.
Shane
rpesq:
It is definitely behaving different. I did drop it in the folder (Portable version) with that manifest file present.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version