473,671 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client Side Component

I am currently working on one of those projects that we all dread. The
type that keeps growing out of scope faster than you can finish the
component to deliver what they've already asked for. Including maybe,
needing to develop things in languages / ways that you have never
developed before. That precursor out of the way, here's my situation.

My client is reshipping things via UPS. We have an interface to the
UPS API which will return to us, in the end, a label in .epl2 format.
What the client wants now, is to print the label on the thermal printer
at the clients site. In the case of .gif labels, we just create a
standard HTML page and send that off to the printer. EPL2 labels are
in RAW format, so it isn't quite that easy. They have stated that it
is acceptable to have users install an OCX/DLL on their client machine
to achieve label printing, but no thick-clients.

I have designed an ActiveX control in VB6 that downloads the file(s)
from the server and sends the RAW print data to the printer. This code
works just fine when called server-side (therefore it prints on the
servers thermal printer). However, I need the page/control to print on
the client's thermal printer. I've not seen much in the way of
documentation on the net, and what I can find doesn't seem to work for
me. At this point, my calling page no longer generates an error, it
simply does not work. I'm sure (and I hope) that it's something stupid
that I'm doing, but...

Anyways, to fill in a bit more detail, the ActiveX control takes a URL
parameter (defines the location to download from) and a GetControl
parameter (tells the control whether or not to also download a
controllog file from the server as well). The control figures out
which printer it needs to print to.

Here's how I'm -trying- to call it now (I've hardcoded values to ensure
that my passing of variable is not the issue):
<html>
<head>
<script language="vbscr ipt">
sub clickme()
dim myPrint
myPrint=createo bject("WebPrint Control.Printer ")
myPrint.URL =
cstr("http://localhost/TrackASPx/Labels/label1Z1Y303E59 92464423.epl2")
myPrint.GetCont rol = cint(1)
myPrint.PrintFi le
end sub
</script>
</head>
<body onload="clickme ();"></body>
</html>

Please someone, help me out so I can dig myself out from this project!!!

Aug 1 '05 #1
1 2658
Most likely there is a security issue with the component accessing the
printer from inside the web-browser. Have you verified in the component that
the file is retrieved by the component?

You should follow this up in a client-side component group.

--
Mark Schupp

"Ambush" <am******@gmail .com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
I am currently working on one of those projects that we all dread. The
type that keeps growing out of scope faster than you can finish the
component to deliver what they've already asked for. Including maybe,
needing to develop things in languages / ways that you have never
developed before. That precursor out of the way, here's my situation.

My client is reshipping things via UPS. We have an interface to the
UPS API which will return to us, in the end, a label in .epl2 format.
What the client wants now, is to print the label on the thermal printer
at the clients site. In the case of .gif labels, we just create a
standard HTML page and send that off to the printer. EPL2 labels are
in RAW format, so it isn't quite that easy. They have stated that it
is acceptable to have users install an OCX/DLL on their client machine
to achieve label printing, but no thick-clients.

I have designed an ActiveX control in VB6 that downloads the file(s)
from the server and sends the RAW print data to the printer. This code
works just fine when called server-side (therefore it prints on the
servers thermal printer). However, I need the page/control to print on
the client's thermal printer. I've not seen much in the way of
documentation on the net, and what I can find doesn't seem to work for
me. At this point, my calling page no longer generates an error, it
simply does not work. I'm sure (and I hope) that it's something stupid
that I'm doing, but...

Anyways, to fill in a bit more detail, the ActiveX control takes a URL
parameter (defines the location to download from) and a GetControl
parameter (tells the control whether or not to also download a
controllog file from the server as well). The control figures out
which printer it needs to print to.

Here's how I'm -trying- to call it now (I've hardcoded values to ensure
that my passing of variable is not the issue):
<html>
<head>
<script language="vbscr ipt">
sub clickme()
dim myPrint
myPrint=createo bject("WebPrint Control.Printer ")
myPrint.URL =
cstr("http://localhost/TrackASPx/Labels/label1Z1Y303E59 92464423.epl2")
myPrint.GetCont rol = cint(1)
myPrint.PrintFi le
end sub
</script>
</head>
<body onload="clickme ();"></body>
</html>

Please someone, help me out so I can dig myself out from this project!!!

Aug 1 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1642
by: Miguel Guerreiro | last post by:
Hello good folks! I need your advice on a project that i am working on. I am integrating a signature pad, a client-side web browser, and my extranet to make a system. In this system, a user can punch in numbers in the signature pad, which are then sent (thru some sort of VB component) to the current page opened by the user's web browser. After that the user presses a SUBMIT button and the numbers are sent to my web-server so I can...
3
2661
by: Mick Turner | last post by:
I have connected to SQL Server database (server-side vbscript) and read some data from the tables. This works correctly. I now have the data in an array (server-side). I have to draw a line-chart based on that data, for which purpose I need to create client-side component (this works also perfectly). PROBLEM: I cannot use the server-side array for drawing the chart. Here's the code shortly:
0
1750
by: Glynn Johnson | last post by:
I understand that there is no way to upload multiple files using ASP and COM+ without having multiple form elements like <input type='file'>. I also understand that there is no way to programmatically set the value of <input type='file'> in IE because it poses a security risk. I didn't know these two facts before I tried to create a client-side activeX component in VB6 which would allow someone to select multiple files from their hard...
4
1566
by: HD | last post by:
Hi, I was wondering if there is a way of verifying information that is in the registry of the user's computer??? Or is there a way of checking if a file is on the c:\ of the user's computer?? I want to make a certain verification of who is entering my website... but the IP address is never the same (since it is randomly given to the user) and I can't use the LOGON_USER variable because the users are not all in the same domain. And...
1
1468
by: Jim Hammond | last post by:
The following code uses a client-side component to capture an image from the camera on the client system. The problem is that the init function (in ClientSideAssembly_Video.dll) is called once when the page is first displayed and then each time the button is pressed. I'm guessing that the component is being instantiated each time. Is there any way to keep using the same instance?
1
1575
by: Harry Simpson | last post by:
I've got a commerce site. I submit a client side form when the clientside submit button is pressed. The action for this post is a redirect to a VeriSign PayFlow link page. Question is....I'd like to save the data on the form into the database when the form is submitted. Is there a way i can use a server side form to send the info to the PayFlow site (they're using Request.Form to get the values posted).??
3
2961
by: Guadala Harry | last post by:
I hope this is something I can solve without contacting the vendor: I'm implementing a 3rd party component that will, by itself, initiate a PostBack. Apparently it does not support the CausesValidation property - so forms get posted back without any client-side validation. I know I can do validation server side (and do anyway just as a good practice), but I want this control (which is basically an ImageButton) to trigger client-side...
11
3950
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to handle most of the things. Currently I have a class called "Product" sitting my webserivce like the following: Code:
5
2214
by: Kursat | last post by:
Hi, I want to add new collapsable panel items using java script at client side. Is this possible to create Ajax components like collapsable panel without server round trip? Thanks in advance.
0
8400
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8924
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8602
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8672
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7441
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.