Old Old code - Turbo Pascal issue

I will make this as short as possible

I have a Turbo Pascal (7.0 I think) OLD DOS APP - Which I am upgrading for customers that need to get to updated software/hardware "Windows 8.1,10.0, etc"
I have been able to get (VDOS) to work on all aspects except for printing with OS 8.1

Here is the Problem - the DOS software will work on 8.1 and new hardware except when trying to print from the LASER PRINTING version of the OLD DOS CODE - prints fine without those BMP'S - when I config the invoices to printout on the BMP files I get nothing - NO ERROR OR PRINTOUT -


Don't have and can't get the original source and the original PROGRAMMER will not help in any way
Need more development time to finish code for new release! - which is why I must find a solution NOW!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:
You are using VDOS.  Are you using DOSPrinter as well?

If so read the help pages at http://www.dsbglobal.com/dosprinter/help/ and the specifics on capturing the LPT port.  You may have to capture the file to file on disk, or possibly capture the file to PDF.
MBHEY131Author Commented:
I can't find solution to this yet:
the old app prints fine to both usb and even wireless EXCEPT for the invoices which is by far the most crucial aspect of the program - IF I can get this printing feature with VDOS worked out I can buy another YEAR of development time for the WINDOWS upgrade - I have tried all features in DOSPRINTER that I know of.

When I try to print an INVOICE - I get NO error - NO nothing and NO PRINTOUT AT ALL, but I can print out the setups, etc perfectly to both USB and EVEN A WIRELESS PRINTER - works great - can any TURBO PASCALLER out there give me a possible path to go down at this point?

MEMORY ISSUES ring a bell on this issue many years ago - but I can provide no other details!
MBHEY131Author Commented:
I did get the printout of an invoice without the LASER portion enabled ONCE - but I can't even do that anymore
very frustrated
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Joe Winograd, Fellow&MVEDeveloperCommented:
> buy another YEAR of development time for the WINDOWS upgrade

That's enough incentive to try some other approaches. :)

Two thoughts:

(1) Put it on an old, physical DOS machine. Isolate it from the Internet so that the security flaws in such an old computer aren't exposed.

(2) Try a different DOS emulator. I don't have personal experience with any of them, but here are two for your short list:


Regards, Joe
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:
Joe, VDOS is the build recommended for running DOS applications rather than DOSBox.  Don't believe DOSBox has printing support.

See this thread http://www.vogons.org/viewtopic.php?t=33268

Also there is the DOSBox Megabuild http://home.arcor.de/h-a-l-9000/megabuild.html which has built in printing support.
Joe Winograd, Fellow&MVEDeveloperCommented:
Ah, thanks for the info on the Megabuild — I was not aware of it. Good to know!
MBHEY131Author Commented:
yeah - I've been down all those roads already - and definitely VDOS is the way to go on apps - now if I can only get this last printing issue resolved!
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:
Everything but the INVOICES print, correct?

Are the INVOICES graphic documents and all the rest text documents?  Are the setups graphic documents?
MBHEY131Author Commented:
the invoices can go either way -
1. a laser document - which is what i interpret you to mean as a "GRAPHIC DOCUMENT"
2. or they also can print just RAW data IF the customer prefers the "PREPRINTED DOCUMENT"

I got the system to print out the RAW data ONCE BUT can no longer replicate that instance?

the setups are all just RAW data - work fine on both USB AND WIRELESS PRINTERS

the old code is calling something on the INVOICE PRINTOUT ROUNTINE only and I don't know anything about PASCAL!
MBHEY131Author Commented:
Joe Winograd, Fellow&MVEDeveloperCommented:
> I don't know anything about PASCAL!

I know a fair amount about Pascal — did all of my programming on PCs in the early days with Turbo Pascal. But since you don't have and can't get the source code, my knowledge of Turbo Pascal doesn't help. Btw, I run some of my old Turbo Pascal programs with Free Pascal (although I've converted most to other languages), but, again, that doesn't help you, since you don't have the source code. Regards, Joe
MBHEY131Author Commented:
MUCH JOY - I can now get the RAW data to print correctly -
the problem was in an "INI" file where 1 part of the code references the "SIGN-ON" name of the person
and another part of the code references the "COMPUTER NAME" - "WHY?" - I have NO IDEA
but that's NO problem cause it works
however I still can't get the BMP FILES to print for the LASER PORTION of the APP????

MBHEY131Author Commented:
Expert Comment 2015-12-17 at 10:24:51ID: 41375295
Everything but the INVOICES print, correct?

Are the INVOICES graphic documents and all the rest text documents?  Are the setups graphic documents?


I believe the ABOVE COMMENT is going in the right direction - How are the GRAPHIC DOCUMENTS different when printing in TURBO PASCAL???

Because now the comment is asking the question which directly applies to the problem!
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:
Is there a CONFIG.TXT file in the VDos folder?

If so post the contents here or attach it in a posting.

Bookmarks possibly useful for later
MBHEY131Author Commented:
LPT1 = /SEL'HP Deskjet 3510 series'
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:

LPT1 = /SEL'HP Deskjet 3510 series'      /RAW

No joy then put


in the file as well.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MBHEY131Author Commented:
much joy -
VDOS is a GodSend if U R like me and dealing with code from the StoneAge (but still perfectly functional)
the answer is this line in the config.txt file

LPT1 = /SEL /IMAGE'C:\CUSTOMERS\THAYER\SL4\invhead.bmp,10,20,100'
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.