briley Posted November 10, 2014 Share Posted November 10, 2014 I have a program in Visual Basic 6 (Not in .net). I can get the program to send emails via Gmail (using microsoft - schemas.microsoft.com), but any Thai text sometimes gets mangled - not always but sometimes it comes through as those funny symbols and letters. I did try saving the text as a text file that did open in Notepad correctly and attaching it to the email, but again it gets mangled. Looking at the text file on the Gmail website it is OK, but download it and it all falls apart. I tried to save the file as an .html file and attaching it, but that never worked properly. I wanted to save it as a .pdf file but can not find any .pdf maker that will automatically save the file - all call for user intervention to give it a file name. I did find a free pdf converter, but that wouldn't open in Adobe or Foxit. I tried converting to .net but my knowledge is not good enough to make it work. Anyone find a solution to my problem? Link to comment Share on other sites More sharing options...
PoorSucker Posted November 10, 2014 Share Posted November 10, 2014 http://www.cyberactivex.com/unicodetutorialvb.htm Link to comment Share on other sites More sharing options...
DogNo1 Posted November 10, 2014 Share Posted November 10, 2014 Well, one solution that will cost you money is to buy Acrobat XI. It will convert many file types to PDFs, including web pages. For Android users, Office Suite Pro will do PDF files. Link to comment Share on other sites More sharing options...
AyG Posted November 10, 2014 Share Posted November 10, 2014 This is almost certainly an encoding problem. Unfortunately, VB6's support for Unicode is poor, and I suspect that's where the problem lies. Or are you using TIS-620 encoding? 2 Link to comment Share on other sites More sharing options...
KittenKong Posted November 11, 2014 Share Posted November 11, 2014 VB6. Wow, that takes me back. I think I could still touch my toes when that came out. 1 Link to comment Share on other sites More sharing options...
AyG Posted November 11, 2014 Share Posted November 11, 2014 Anyone find a solution to my problem? Realistically, you're running ancient software which was never designed to be multilingual. It would be better for you to find a more modern solution for whatever you're trying to achieve. And if you state here what you are trying to achieve, possibly someone will be able to point you in the right direction. Link to comment Share on other sites More sharing options...
briley Posted November 11, 2014 Author Share Posted November 11, 2014 Yes agreed - VB6 is very old but it does do quick and easy jobs very nicely! And I enjoy playing with it. I half heartedly tried using .net but failed to get started so gave up. The problem is this is a program that started out small some 15 years ago and has grown and grown - along with what I want it to do. It works fine in English and Thai, even if the Thai on the code pages doesn't come out properly but on a form it is fine. I have used a few programs to produce a pdf file by using print commands - ie print to a .pdf. All produce the file that is fine, but then need user intervention to give it a file name to save. If one of the pdf printers would automatically save the file I produce that would be fine as I can then attach the pdf file to an email, job done. I have tried acrobat XI, Debanu, Foxit, pdfFactory and pdfCreator but all suffer from the same problem - it needs user intervention for a filename! Thanks for all the comments Link to comment Share on other sites More sharing options...
PoorSucker Posted November 11, 2014 Share Posted November 11, 2014 Sounds like a challenge for a an old programmer like me. Send me a PM. Link to comment Share on other sites More sharing options...
KittenKong Posted November 12, 2014 Share Posted November 12, 2014 I have used a few programs to produce a pdf file by using print commands - ie print to a .pdf. All produce the file that is fine, but then need user intervention to give it a file name to save. If one of the pdf printers would automatically save the file I produce that would be fine as I can then attach the pdf file to an email, job done. I have tried acrobat XI, Debanu, Foxit, pdfFactory and pdfCreator but all suffer from the same problem - it needs user intervention for a filename! As we are stuck in a time vortex, perhaps this would do the trick: http://www.pdfforge.org/pdfcreator/manual/command-line-parameters Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now