Imm. Help required . To Send the contents of a JFrame to printer
Hi All
I need to send the contents of a JFrame or JPanel to the system printer.
I need the java codings to send the contents of a JFrame to get printed in the default printer.
Pushparaj T
I just posted a link to another thread that discusses making a transparent frame.
http://forum.java.sun.com/thread.jsp?forum=57&thread=490146
The basis for this concept can be used for sending the image (screen capture) to the printer.
Should you tackle the project and develop a working screenshot printing program, please post here.
Similar Messages
-
Help required in changing the contents of a string
hi guys
I'm reading in a series of xml files which contain a passage
of text like that below
Here is an example:
Since iritis is associated with HLA B27, it may obviously
occur in any of the <GLOSS
ID="seronegative">seronegative</GLOSS><SMALLIMAGE
width="348" height="254">charcothip.jpg</SMALLIMAGE>
I am displaying this text in a html textfield. However for it
to display properly, I need to replace the <SMALLIMAGE> tag
with
<IMG SRC="charcothip.jpg"/> etc
I can do a replace on <SMALLIMAGE and turn it to <IMG ,
however how do i add the SRC="charcothip.jpg"> ?
can anybody provide me with some suggestions for how to do
this?
Any ideas and suggestions would really be appreciated
ThanksIf you can replace <SMALLIMAGE with <IMG then I am not
sure why you couldn't include the SRC="charcothip.jpg" with the
<IMG portion?
How are you replacing it currently? Could you store the
replacement string in a variable and use it instead.
var replacementString:String = "<IMG
SRC=\"charcothip.jpg\"";
Then you could do something like this (assume the myStr holds
the XML String):
var myArr:Array = new Array();
myArr = myStr.split("<SMALLIMAGE");
myStr = myArr.join(replacementString);
Obviously, this will only work if you are replacing all of
the <SMALLIMAGE pieces with the same image. If not then you
could use the following:
var searchFor:String = "<SMALLIMAGE";
var newString:String = myStr.substring(0,
myStr.indexOf(searchFor));
newString += replacementString;
newString +=
myStr.substr(myStr.indexOf(searchFor)+searchFor.length);
You can keep the width and height attributes since Flash will
recognize those when rendering the HTML.
Tim -
A utility program to send the content of a spool OR an internal table in
Hello Guys,help me.
A utility program to send the content of a spool / an internal table in various formats like HTML, PDF, TXT etc.
can u explain wht is this completely
Thank you
Santhosh.Please check below links for better understanding of sending data from SAP to various formats...
internal table to an XML file
http://www.erpgenie.com/abap/code/abap27.htm
Report Output to a PDF File
http://www.erpgenie.com/abap/code/abap51.htm
HTML EMail from ABAP
http://www.erpgenie.com/abap/code/abap20.htm
Spool from SAP to Acrobat format
http://www.erpgenie.com/abap/pdf_creation.htm -
Send the contents of group to be machine translated.
I know is possible to send the contents of this term set to be machine translated, but a like to send the group to be machine translated. Is it possible?
Hi,
No, we cannot send the group to be machine translated by OOTB.
For more information about Machine Translation,you can have a look at the blog:
http://blogs.technet.com/b/wbaer/archive/2012/11/12/introduction-to-machine-translation-services-in-sharepoint-2013.aspx
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .
If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp -
I forget answer to my qustion with rescue email adrees please help me and send the answer to my main mail. Thank you very much
We are fellow users here on these forums, you're not talking to iTunes Support.
If you don't have access to your rescue email account, or you don't have one on your iTunes account, then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down this page to add/change a rescue email address for potential future use : http://support.apple.com/kb/HT5312 -
Mailto link to send the content of the page when clicked.
I want to set up a mailto link that sends the contents of the page to a predefined address when clicked. I want this to work from a webpage viewed on an iPad as well as a desktop computer. If this is possible, how do I do it?
You cannot, but you may be able to send the link to an address, just not the webpage content itself.
-
hello
Please help me to send the link re-appoint security questions because of the loss of the answers
I hope e-mail me as soon as
Thank youYou need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105195) -
Help required in sending automated mails to hr-coordinator
Dear Friends,
I have a requirement where to send the mails to HR co-ordinator via r3-program
suggestions are appreciated, Help me in this regard.
Thanks in advance.
Regards,
nallani.Hi Nallani,
Write a <Zprogram>, use your own logic in the program to send mails.
Example: Suppose mails should be generated to the respective administrators when a employee is hired.
clue - once IT 0001 is saved you should generate a mails.
Solution: My logic is, check Personnel area & Personnel sub-area, based on this in IT 0001 - pick up respective Administrator for that employee, and run the program to send mails.
for this you need to maintain Dynamic actions for IT 0001, there you need to maintain your <Zprogram>, while change/create of IT 0001, <Zprogram> should be executed
[Insure the respective administrators maintained with their e-mail id addresses]
Hope you got an idea how to make a show for your query?
Cheers,
TG -
Help required in understanding the flow of control in working with EJB 3.0
*1. Can anyone help me in understanding the flow after getting an object of InitialContext in using Stateless/Stateful in EJB 3.0 from client i.e. what we are getting in the step Object ref=jndiContext.lookup("CalculateBean/Remote) .*
*2. What is the use of INITIAL_CONTEXT_FACTORY*
*3. PROVIDER_URL*
*4. Java.naimg.factory.url.pkgs*
*5. why org.jboss.naming and org.jnp.interfaces separated by semi colon.*
*6. Why we dont require INITIAL_CONTEXT_FACTORY, PROVIDER_URL and Java.naming.factory.url.pkgs if the client is a web client.*
Properties p=new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put(Context.PROVIDER_URL,"jnp://localhost:1099");
p.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
Context jndiContext = new InitialContext(p);
Object ref = jndiContext.lookup("CalculateBean/Remote");
Calculate c = (Calculate)ref;
int sum=c.add(3,4);
System.out.println(sum);
Thanx in advance........Annotations can also be processed at run time using the core reflection API (java.lang.Class & java.lang.reflect.*), so you might want to explore down that path. I have no idea how JBoss actually does it, but annotation processing at build time and core reflection at runtime are the two most obvious possibilities.
Bruce -
Help required in implementing the algorithm
Actually I am brand new to the java programming, and i need some help to implement the algorithm below in java.
I have the dataset required for the execution,
Can any body please help me?
Input: (1) a source database D,
(2) a min support,
(3) a min confidence,
(4) a set of recommended items Y
Output: a transformed database D, where rules containing
Y on RHS will be hidden
1. Find large 1-item sets from D;
2. For each hidden item y �� Y
3. If y is not a large 1-itemset, then Y := Y − {y};
4. If Y is empty, then EXIT;// no AR contains Y in RHS
5. Find large 2-itemsets containing items in Y from D;
6. For each y �� Y {
7. For each large 2-itemset containing y {
8. Compute confidence of rule U, where U is a rule likex �� y;
9. If confidence(U) �� min conf, then { //Calculate # of transactions required to lower the confidence of U
10. Calculate iterNumConf = _|D|∗(supp(xy) − minconf ∗supp(x))_;
//Calculate # of transactions required to lower the support of U
11. Calcualte iterNumSupp = _|D|∗(supp(xy)− min supp)_;
12. Calculate k = minimum (iterNumConf, iterNumSupp);
13. Calculate |TR| = |xy|; //|TR|: # of transactions inTR
14. if k > |TR|
15. Can not hide U;
16. else {
17. Find T kR = first k transactions that contain xy;
18. Sort T kR in ascending order by the number of items;
19. for i = 1 to iterNum do { 20. Choose the first transaction t from T kR ;
21. Modify t so that y is not supported, the RHS(U);
22. |xy| = |xy| − 1; // update support count of xy
23. confidence(U) = |xy|/|x|; // update confidence
24. Remove and save the first transaction t from T kR ;
25. }; // end for iterNum
26. }; // end if confidence(U)
27. }; // end of each large 2-itemset
28. Remove y from Y;
29. } // end of for each y
30. Output updated D, as the transformed D;The way you post that, it looks very much like "Do my work for me". Nobody around here likes that kind of post, they consider it lazy and selfish. But perhaps you didn't mean it that way? Why don't you explain what you have done and what parts of it you are having problems with. Explain those problems in detail.
-
I have a custom list called "Suggestions" with a field called 'Notes from Reveiwer'. Folks enter a new suggestion and kicks off a workflow to approvers. Approvers review the suggestions and add notes. When notes are added, I would
like to have the contents of that field show in the email that I created in the workflow that goes back to the user who created the original suggestion.
LDillonWhere are the Approvers adding Notes? Is this part of the Task form?
If yes, you need to get the ID of the task that you created in the workflow for the approvers. Using this ID, you can reference the field in another list and it as lookup in the email body. If you dont have this ID, create a Field in the Custom task and
call it SuggestionID. Populate this with the ID of the current item from the Suggestions list. You should be able to then reference this to get the response of the Approver.
If the Approver is responding in the same list, then just add the response field as a Lookup in your email that is sent back to the person who submitted the suggestion.
Hope it helps.
Regards, Kapil ***Please mark answer as Helpful or Answered after consideration*** -
Help required in executing the stored procedure and capturing the responce
Hi,
I have to execute a stored procedure in oracle database and if it successful then have to create a status IDOC.
The stored procedure may throw an exception(it is not an out parameter), in such cases i should capture the exception as part of the response message and send this information while creating the status IDOC.
i would like if the below is possible.
As the stored procedure is not returning( this means if you execute the procedure manually it will display the result), will it be possible to capture the result which has the exception details?
any direction to this will be highly appreciated.
Many thanks.
Regards,
Rahul@Bhaskar,
i need to execute the procedure by sending the input data from a file and capture the result after executing the procedure to create a status idoc
im not sure how the provided links helps me here.
i m not looking for any look ups. i would like to know is there any way that we can capture the result after executing the database procedure?
Edited by: Rahul_10416 on Dec 5, 2011 10:07 PM -
Help please--to convert the content of a file to a string
import java.io.*;
public class ReadFile
public static void main(String args[]) throws IOException
InputStream fis;
fis=new FileInputStream("d:\\sp\\content.txt");
StringBuffer sb=new StringBuffer();
char str;
for(int i=0;i<fis.available();i++)
sb.append((char) fis.read());
System.out.println(sb.toString());
System.out.println(fis.available());
Here if i use the available method i could able to read only the half content (746 bytes) of the file,but my text file size is 1,492 bytes.Why is it so???
Is there anyother way of reading the content of a text file and converting it to a string........
regards,
koelIt is perhaps because the size of type char is 2 bytes in Java (unicode coding).
Try this :
BufferedReader buf = new BufferedReader(new FileReader(fileName));
String line;
StringBuffer res;
while ((line = buf.readLine()) != null)
res.append(line).append("\n");
buf.close();
Hope it will help
Yann -
How long does it take for Apple to send the content code for a free upgrade to Mountain Lion?
Has anyone managed to successfully receive the content code in their email for a free ugprade to Mountain Lion?
I bought my MBP on 14 July so I qualified for the free upgrade. Went to the website and filled in the form along with my serial number about 2 nights ago. Still haven't received my content code yet. How long does it take? Should I be speaking to someone already? Who?
Thanks.We are being advised it can take up to 72 hours !
Maybe you are looking for
-
Time Capsule Hard Drive - Disk Repair and NAT
When the "original item" can't be found on the time capsule hard drive, how does one go about connecting TC to a computer to run a disk utility to repair the TC hard drive? By the way, I was merrily rolling along with TC until this morning. Suddenly,
-
When I try to open an email I get an error that adobe reader 8.1 is not working
I have tried to fix this with no luck any suggestions ?
-
2ng gen ipod touch, Apps NEVER work after sync, please help a noob
2ng gen ipod touch, Apps NEVER work after sync. am i missing something? i basically have to lose all my apps in order to add tunes. its doing my head in, Help pweeeessee..
-
Report Wizard 10g default layout
I have a lot of data columns in my report and want the wizard to generate a default layout 132 columns wide. However the wizard always defaults to only 80 columns and wraps fields and headings to multiple rows. Is there a way to make it default a wid
-
Problem with directories unsolvable?
Hello everyone - I am currently on a Dual 2GHz PowerPC G5 running OS 10.4.10. I recently have had problems burning files onto a DVD and figured I'd give my disk utility a shot. When I try to verify my disk before repairing it (as simply repairing it