Java :: Portable Way To Determining Of Printer Is Physical Or Virtual?
Feb 25, 2011
I need direct-to-printer functionality for my website, with the ability to distinguish a physical printer from a virtual printer (file).has this functionality via a native binary which must be installed by the user. I'd prefer to avoid thatI dug through that Java APIs a bit, and don't see anything that would let you determine physical vs virtual, except looking at the name (that seems prone to misidentification). It would be nice to be able to do it in Java, because I already know how to write Java applets. Failing that, is there a way to do this in Flash or Silverlight?
View 3 Replies
Similar Posts:
Feb 2, 2011
I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.
To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?
View 3 Replies
Oct 28, 2010
printing directly to a Photo ID Card printer in a web browser?I have a web application that manages user data, photo, and so forth. I'd like to add a Print ID Card feature to it. The web application is a single page javascript application that talks to a RESTful web service via JSON. I'd like to display what the printed card will look like on both the front and back for approval before the user clicks the print button.
Generate front and back JPG or PNG images to print on the server, send them to the client for display and approval, and then somehow send the images to the printer.Use javascript with SVG or Canvas to display the card to print in the UI for approval, then somehow send the SVG/canvas data to the printer.Generate a PDF and print the PDF to the printer.Use Flash to display and print Use a Java applet to display and print Something else?
View 3 Replies
Apr 9, 2011
MVVM In MVVM there can be only one View for each one View Model ?
Answer would be to use DataTemplateSelector to get multiple views. Now let's say I need to port to flex. Does Flex have the same paradigm as DataTemplateSelector?
View 1 Replies
Apr 14, 2012
A friend of mine has created a movie for my site, it's in .flv format. I've heard of the popular flash player called flowplayer, but I have a bad feeling such a player will not work on the ipad and other devices which do not support flash. Is there a way to play a video in the flash format through a non-flash player so that the content can be viewed on all devices?
View 1 Replies
Nov 9, 2009
I'm using an online charting program written in flash. I have Flash 10 and IE8. Each time it draws a chart, my available physical memory decreases. On my WinXP Pro machine with an i7 processor and 4G RAM I can draw ~20 charts before available memory decreases to 1.6G and IE locks up. On my laptop with WinXP Pro, Core 2 Duo and 2G RAM with Flash 10 and IE7 I can draw about ~40 charts before available memory decreases to 160M and IE locks up. It seems that the only way to get the memory back is to close and then reopen the tab. Is this common to Flash or was this program poorly written? Would I have better luck with another browser
View 1 Replies
Feb 9, 2011
I have a Flash object that I need to embed in a page, and I've got it in a wrapper div that is styled to the exact width of the object: 323px. The problem I have is that when I zoom the whole page in the browser (for example, by using ctrl+mouse wheel, or ctrl++ or ctrl+-, the wrapper div zooms, while the flash object does not. Is there a way that I can specify a width in physical screen pixels, so when I zoom in or out, the wrapper div stays the size of the Flash object?
View 1 Replies
May 19, 2011
I'm using UILoaders to load different .swf files into the main .swf and am having a problem when I try to load a specific .swf file after a series of steps.I wanted to know if there was a way to see which is the current path that the application is in so that I can know if my relative paths are working or if I have to change them.I want to do something in the likes of this.path, or anything that works that way.
View 1 Replies
Feb 15, 2011
How can we get monitor's physical height and width ie size?
View 7 Replies
Nov 30, 2009
I would like to know if it's possible to tie Flash into physical devices, so the display is of course flash, but underlying input is from a physical device. Such as metal detector, water gauge, battery voltage, etc.
View 1 Replies
Feb 14, 2010
I might get a job for a museum which involves triggering various movies / interactions with physical buttons. The details aren't quite clear yet but I thought I should get started with researching hardware options to be prepared. I imagine there will be a physical button to start the presentation, a button to stop it and perhaps a forward / rewind button? Or it could also be 4-5 physical buttons built into the wall next to a screen each of which would launch different movies. Is this something that can be done in flash at all? Are there such buttons out there that can easily be plugged into a computer through USB and then connected to a simple flash movie?
[Code]...
View 3 Replies
May 2, 2007
I tried to create similar animation like this: [URL] I found that it is not very easy to handle those physical motions just by using flash 8 e.g. So I wonder how do you guys handle it.
* Using macromedia flash only?
* Using some plugins (Fusekit, etc)?
* Using Flex?
* Using flash engine?
* Others...?
View 2 Replies
May 19, 2011
I have an app in Flex using Google Maps API (with Map3D) and I receive GPS data that basically is Latitude,Longitude and Altitude. well... I want to show the marker in my app also changing the altitude of the location I received the data.
View 1 Replies
May 15, 2009
I have a presentation file I need to print out are ther any utilities or functions within flash that will allow me to print to printer or PDF?
View 4 Replies
Apr 20, 2011
I've been building an AIR application in AS3 which includes a number of drawing tools, allowing the user to annotate a page with freehand drawings, lines, text etc. I'm almost done and everything tests well on my dev computer but testing on an old XP machine crashed every time I tried to print. Eventually I realised this was due to a mass of data being sent to the printer which that poor old XP machine just couldn't handle. All I'm doing is creating a new printJob with printAsBitmap set to true, and using addPage to add the MC I want to print.
When I look at the windows print jobs dialog I see it's sending 1.68Gb of data to the print spooler! I figured that there must be too much in the MC so I create a bitmapData of the same size and copy it to a bitmap, then add that to a blank MC and send that to the printer - same problem! The MC is 2480x3508 which equates to 300dpi on A4 paper. By my calculations that should be a bitmap of around 33Mb, so where is all the other data coming from.
Here's my PHP Code:
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
var options:PrintJobOptions = new PrintJobOptions();
options.printAsBitmap = true;
var thisRect:Rectangle = new Rectangle(0, 0, 2480, 3508);
myPrintJob.addPage(printTemplate, thisRect, options);
PrintTemplate is a simple MC containing a single bitmap. Both the bitmap and the printTemplate object are 2480x3508 pixels.
View 1 Replies
Jun 2, 2005
I've created a print button. I now want to have it sent to the printer a picture that is in my .fla file. What is the best way to achieve this?
View 4 Replies
Feb 9, 2010
I want to make a button map to a local printer on the network.
View 6 Replies
Apr 19, 2010
i m trying to set the printer on the landscape mode but unable to do so.i also used the my_pj.orientation == "Landscape") but got no success in achieving the subject.
here is my code
on (release) {
var my_pj:PrintJob = new PrintJob ();
if (my_pj.start ())
[code]...
how can i achieve the printer in the landscape mode?
View 3 Replies
Feb 11, 2010
I'm running app in air. When I'm trying to print the print manager window show up, i choose printer and click 'ok' and nothing happens. Printer icon showup for few seconds but have no print tasks. Of course it's not becouse of the printer managar (it works fine when printing from e.g. word).My code looks like this:
[Code]....
View 1 Replies
Mar 7, 2008
Ok, this is a function that used to work...so I didn't check it for a while...and I did not edit it from when it was working in any way...but now the print function does not produce a page from the printer...when I click "Print View" the print dialog box comes up, and I can choose my printer, and when I click ok, there is a tooltip near the windows clock that says document sent to printer, but the printer never does anything...I have tested this in several printers and several computers...I have also tried to output to a pdf...and it allows me to choose a file name to save to but it never creates the file...
print button code:
Code:
printButton.onRelease = function()
{
var pj:PrintJob = new PrintJob();
[Code]....
View 2 Replies
Jun 16, 2010
I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip. According to the ActionScript online API spec [URL], I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting.
View 1 Replies
Jun 16, 2010
I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip. According to the ActionScript online API spec [URL], I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting.
View 1 Replies
Mar 29, 2011
A client needs a standard consumer color printer for printing name badges from my flash app. Last time we used the app, I couldn't do any pre-testing of their computer and printer beforehand. So, of course, the margins were completely wrong when the time came to print. Ideally, I'll have the flash app's bugs worked out for the next run, but for safety's sake does anyone know of a printer that has good controls for custom margins and offsets, in case some minor adjustments are needed?
View 1 Replies
Feb 9, 2010
I am making a floor map for the company I work for. And I want to make a button map to a local printer on the network...
View 1 Replies
Apr 5, 2007
I was wondering if it would be possible to use copyPixel to create a simple text printer for example you have a font as an image like this
[URL] then have some code that will transform your text ="hello world" into HELLO WORLD on your flash screen, but written in that font.
Because the font is spaced equally you could have the source x and y, times by 16pixels for each letter and move the Y source down 16 pixels when it reaches the right side of the image
View 2 Replies
Feb 10, 2010
does anyone know a way that you can print a selction on the stage to jpeg format or to a printer
View 3 Replies
Apr 25, 2008
I want to have flash set the default print orientation to landscape when it calls the print object...is this possible?
View 1 Replies
Feb 15, 2011
I have been working on a small Flash application. I want to add a "Print" button to it, and just dump the entire flash-window to the printer. Is this possible??
View 1 Replies
Jun 25, 2010
I am a .NET Developer, but the question I am having is not related to .NETPlease keep this in mind even if my question sounds very trivial.This is my question:We have an swf in the browser, which communicates with a java extensionIts done using Smartfox Server(Used for MMO apllications)From the swf we are grabbing a portion of the screen as "Byte Array" in action script(3).And in Java, we are calling a function that converts the ByteArray to Image and then saves it.ur Java developer is encountering the errorSo basically, what I would like to know is this:How to accept the object type Byte Array from ActionScript in Java?Whats Java object type that is mapped to Byte Array in ActionScript?The conversion part is easy, I dare say. code in the ActionScript Section
public function savePhoto(uName:String, ba:ByteArray, descr:String):void{
var obj:Object = {};
obj.arr = ba;
[code]....
View 3 Replies
Jul 16, 2010
I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.
View 1 Replies