Hi,
I'm trying to implement Knowledge Base Article - 322090 into my code to be
able to send data directly to a pos printer. This works fine under win XP,
but when I try the same printer under W98 it fails to print. The openprinter
function fails, but when I try to get the error with getlasterror it just
states that the last command completed succesfully.
The printer is correctly connected, if I print from notepad or so, it works,
and if i send data to lpt1 from dos it also prints.
Anyone have any clue on what might be going on?
Thanks,
Kristof 3 1970
* "Kristof Nachtergaele" <ik**@nie.com> scripsit: I'm trying to implement Knowledge Base Article - 322090 into my code to be able to send data directly to a pos printer. This works fine under win XP, but when I try the same printer under W98 it fails to print. The openprinter function fails, but when I try to get the error with getlasterror it just states that the last command completed succesfully.
The printer is correctly connected, if I print from notepad or so, it works, and if i send data to lpt1 from dos it also prints.
Use this method to get the error number:
<http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesmarshalclassgetla stwin32errortopic.asp>
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
I've got the error number now, it's 120 and the associated message is that
"this function is only valid in Win32 mode" (translated from dutch)
Any clues to what might be happening here ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bn************@ID-208219.news.uni-berlin.de... * "Kristof Nachtergaele" <ik**@nie.com> scripsit: I'm trying to implement Knowledge Base Article - 322090 into my code to
be able to send data directly to a pos printer. This works fine under win
XP, but when I try the same printer under W98 it fails to print. The
openprinter function fails, but when I try to get the error with getlasterror it
just states that the last command completed succesfully.
The printer is correctly connected, if I print from notepad or so, it
works, and if i send data to lpt1 from dos it also prints. Use this method to get the error number:
<http://msdn.microsoft.com/library/en...mruntimeintero
pservicesmarshalclassgetlastwin32errortopic.asp> -- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet>
"Kristof Nachtergaele" <ik**@nie.com> schrieb I've got the error number now, it's 120 and the associated message is that "this function is only valid in Win32 mode" (translated from dutch)
Any clues to what might be happening here ?
In my MSDN library version, error 120 is:
"This function is not supported on this system."
--
Armin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bryan Z |
last post by:
I was wondering how do you print just part of a webform in asp.net -- like
just printing the contents of a textbox or label. I know that it will
involve javascript, but I cannot get the javascript...
|
by: Sushil Srivastava |
last post by:
Hi Guys,
I have developed a utility that provide a smart MSDN
knowledge base search both off-line and on-line. I have
describe more in detail below why I decided to write this
utility (one...
|
by: Sai Kit Tong |
last post by:
In the article, the description for
"Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports
or
Managed Entry Points"
suggests the creation of the class ManagedWrapper.
If I...
|
by: Blue Streak |
last post by:
Hello,
I am trying to develop an interface to view an internal knowledge base. One feature I would like to add is a "Generate E-Mail" button which would automatically open an e-mail message a...
|
by: Rand |
last post by:
Hello anyone,
Situation: I want to print 1 or x mailing continuous form
labels 1" X 3.5" then change to a different name and print
again.
Everything works fine except for problem below.
...
|
by: marcvill |
last post by:
I need to send printer specific escape codes a printer for a POS register. Can anyone tell me how to send these codes to a printer using VB .NET and the Win32 spooler functions? I have looked at the...
|
by: notregister |
last post by:
Hi,
i am currently do a project that send a printjob to a few printers which are
connected to a PC by an ethernet hub. How can i send a print job thru the hub
to all the printers connected to the...
|
by: sukhsinghin |
last post by:
Hi,
I am trying to print a invoice form with data from dataset using vb.net
and printer is dot matrix. Invoice is a continues paper with
pre-printed headers like First Name, Last Name, SSN# etc....
|
by: Ivica Muruzovic |
last post by:
Is there any source code for printing text file directly to
dot-matrix printer without involving windows (like in DOS mode)
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |