PDA

View Full Version : Printing from windows application


Sandeep
July 2nd 04, 09:16 AM
Am unable to use the 'Print <filename>' in a windows
application. PCs with Windiows 98 have this problems and
PCs with higher windows os are able to print.

Jeff Richards
July 3rd 04, 01:01 AM
What is the application, and what happens when you try? Are you sure this
application is fully compatible with Windows 98?
--
Jeff Richards
MS MVP (DTS)
"Sandeep" > wrote in message
...
> Am unable to use the 'Print <filename>' in a windows
> application. PCs with Windiows 98 have this problems and
> PCs with higher windows os are able to print.
>
>

Davide Guolo
July 3rd 04, 11:44 PM
Sandeep,

> Am unable to use the 'Print <filename>'

Which kind of file is <filename> ?
Which kind of printer are you sending it to ?

Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------

July 5th 04, 12:01 PM
I am trying to use the print command from a visual basic
6.0 application with the following syntax:
'
Print <filename>

'

This works in Windows 2000 and Windows XP but does not
work in Windows 98 machine. I am priting the report on an
Epson LQ1150 dot matrix printer attached to the PC.

Thanks
>-----Original Message-----
>What is the application, and what happens when you try?
Are you sure this
>application is fully compatible with Windows 98?
>--
>Jeff Richards
>MS MVP (DTS)
>"Sandeep" > wrote in
message
...
>> Am unable to use the 'Print <filename>' in a windows
>> application. PCs with Windiows 98 have this problems
and
>> PCs with higher windows os are able to print.
>>
>>
>
>
>.
>

Davide Guolo
July 5th 04, 01:53 PM
> Print <filename>

Be sure Print.exe is in path.

> I am priting the report on an
> Epson LQ1150 dot matrix printer attached to the PC.

If print.exe is found, then it should print without problems to an LPT
printer.
Did you try to "DIR > LPT1" ?
If this does not work either, it could be an hardware problem.

Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------

Jeff Richards
July 5th 04, 11:57 PM
Is this VB6, or an application written using VB6? If you are talking about
the VB "PRINT" statement then it cannot be used in the form you have
described. The PRINT statement allows you to print a variable to a file.

It sounds to me like you are using an application that gives you access to
the command line and you are actually executing this statement as a DOS
command. In that case, whether or not it works depends on whether there is
a suitable "PRINT" program available on the machine, as Davide has
described.

What happens when you try?
--
Jeff Richards
MS MVP (DTS)
> wrote in message
...
>I am trying to use the print command from a visual basic
> 6.0 application with the following syntax:
> '
> Print <filename>
>
> '
>
> This works in Windows 2000 and Windows XP but does not
> work in Windows 98 machine. I am priting the report on an
> Epson LQ1150 dot matrix printer attached to the PC.
>
> Thanks
>>-----Original Message-----
>>What is the application, and what happens when you try?
> Are you sure this
>>application is fully compatible with Windows 98?
>>--
>>Jeff Richards
>>MS MVP (DTS)
>>"Sandeep" > wrote in
> message
...
>>> Am unable to use the 'Print <filename>' in a windows
>>> application. PCs with Windiows 98 have this problems
> and
>>> PCs with higher windows os are able to print.
>>>
>>>
>>
>>
>>.
>>