Print the text into html file
Dear all,
How i will print the result directly to the html file instead of print output in the console.
Give the sample code.
Thanks & Regards,
kumar
Hi kumar :)
I'm not sure if this is what you mean but Jakarta has an Element Construction
Set (ECS) API that can generate elements for HTML and XML mark-up
languages.
Please checkout their site: http://jakarta.apache.org/ecs/
Similar Messages
-
How can we print the webreport into PDF file(not using the Web Analyzer)
Hi
I have a report in 'WAD 3.5' . And this report will be executed in the web browser .
My user wants to print this Web Report in the PDF file (or) import into excel file .
So how can we do it , if the report is in web browser .
Pls let me know
regards
sureshHi,
Check this link may be useful:
Displaying PDF file in browser
Rgs,
Ravikanth. -
Hello,
I have a simple web site at http://www.psychicmeatloaf.com which is an online poetry journal site. I use files people send me (mostly .doc or .docx) and cut and paste the text from those files into html pages in an older version of Dreamweaver and some of the text has special formatting (like this page: http://www.psychicmeatloaf.com/Chang-poetry.htm ). The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver. Even using this method, some text will not maintain it's special formatting and for those I just save the page as a .jpg file and use that, because I have no other choice.
My question is, is there a better way and is there a better file type to work from other than .docx?
Thanks a milliom,
Georgeneophyte weaver wrote:
The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver.
That's a lot of steps to get to a single end that could be done with a simple copy & paste of the text into code. Like Photoshop and Fireworks, Word writes some very bulky and dirty code. I wouldn't recommend it for direct copy by the method described above.
I personally copy the text and paste it into code view. It takes a little more work, but I don't get dozens of lines of inline styles added with it and using a preformatted post div (saved and hidden in the code (<!--post block code goes inside-->), I can quickly put title, date, byline and links up with a cut & paste.
That's just my $0.02 worth
Also, since nearly EVERYONE will use a different formatting in a Word doc, putting a bunch of differently formatted posts into a page will make it look like one of those ransom notes made of cut out text from different newspapers and magazines. Better to keep everything in a single format (your format) so it doesn't become an eyesore.
Message was edited by: Curtis_E_Flush -
Just started using my Mac Mail program instead of web mail. When I went to attach two pdf files, one attached as a file, the other inserted all the text into the body of the email message. How do I get it to attach both pdf's as files?
I think you're confusing two different things. If you attached PDF files and one of them displayed the PDF icon in the message window, that means it was more than one page. If you saw what appeared to be the actual document for the other PDF file, that means it's only one page and it's normal for it to display that way.
However, I seem to recall there may (or should) be a button at the bottom-right of the message window that allows you to display those files as icons, even if they're one page. If not, there's a third-party addition you can use to add that feature:
http://lokiware.info/Attachment-Tamer -
How to use OCR Font A type by the time of writing some text into Pdf fil
Hi,
I am generating one pdf file in java. How can I use OCR Font A for text of pdf file ..Please can any one help where can I get OCR Font A and how to use that one in java ... I want to write some text into pdf file and that text should use OCR Font A family ...
Thanks.This document shows how to disable OCR during conversion; just do the opposite: https://forums.adobe.com/docs/DOC-3062
-
How to print the texts retrived by using READ_TEXT fun module in Smartform
Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
I have coded all things in the program lines and in that i am retriveing the long texts.
I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
I have to print the trouble ticket. in that the notes log I have to pass.
its urgent. Points will be rewarded for any type of clue. whether it will work or not.There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
Text Name
Text Obje
Text ID
Language
Encase any variables with the "&" symbol.
If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output. -
"texts on html file" are not updated "when edited on server"
Hi All,
QUESTION
What are the solutions, for having editable text/content on .html published files, so clients can edit through their server control panel
Scenario:
Client wants to update the "text" by editing the .html files on a server.
I published the website as static html so the text can be included in .html file, but edits made on server's control panel, doesnt appear in live website.
I also noticed that the texts located in edgeActions.js are editable through server, i am not very interested to define all my text content as the dynamic
code because then I must worry about empty .html files and SEO questions.Here is what I ve found in regard to my own question...
For a Client, to be able to change the text on server (Ex: phone numbers in a contact page), they should access and modify the text in the edge.js or sometimes edgeaction.js page. Changing the text on .html page will create no result. I assume, this is because, the .html page is exported ONCE and only at the point of Publishing a project, to satisfy the SEO needs or whatever. Think of the text on .html page as a Sticker to fool the rest of the world, changing it will not change anything on webste and. Also if you change the text in .js, the change will not be relfected on .html file. -
Plz help to get the tag of html file
hi
I wants to convert the HTML file into PDF file dynamically.
So first i wants to get the tag of html file when we pass the path of html file.
so how i do this plz help me.Plz Tell me how I get the HTML Tag through the java code.
-
How to solve the problem related with inputing of the text into Wordpress from Firefox 9 and 9.0.1.
The problem is that after inputing the formatting gets lost.
Taking in account high popularity of Wordpress I suppose the problem is quite serious.Perform the suggestions mentioned in the following articles:
* [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
* [[Troubleshooting extensions and themes]]
* Clipboard not working -> [http://kb.mozillazine.org/Clipboard_not_working]
* Rich Text Editing -> [http://kb.mozillazine.org/Rich_text_editing]
* Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
Check and tell if its working.
Might not be related to your problem but some of your Plugins are out-dated
* Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
* '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)''' -
How to print the text in points wise in sap script
hi friends,
how to print the text in points wise in sap script.
ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
1. hai how ru.
2. what r u doing.
3.where r u.
like this i want numbering.. waiting for ur replys.
thanks,
kirandeclare a counter
data : cnt type char 4.
print :
cnt = cnt + 1.
&cnt& &text&
cnt = cnt + 1. and so on.
or.
if the data is in an internal table
loop at internal_table.
cnt = cnt + 1.
write form.
in script -&cnt& &text&
endloop.
Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM -
How to print the text in only last but one page in sapscripts
hiiiiiiiiiii,
explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?Hello,
The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
So u can handle the situation in ur form like this
/: if &PAGE& = &SAPSCRIPT-FORMPAGES&
p1 TEXT
/: endif
Try in this way it may help u.
Regards -
In Pages (5.2), in a table, superscript is not only not printing, but not printing the text around it. Any answers?
Known issue now for almost 9 months.
Use Pages '09 if you have it.
Peter -
I need to print the text in secondary window in script
hi all,
how to print the text of purchase order (me22n) in script.
plzz explain with steps
thanks in adv
vidyaGood that you know how to use read_text...
In SAP script used it as shown below, in your script window call subroutine as shown below
Go through this example
Ex.
/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
/:USING &<field name>&
/:CHANGING &<field name1&
/:ENDPERFORM
Display &<FIELD NAME1>&
Then create subroutine pool program and you have to write the code.
FORM ><subroutine name> tables int_cond structure itcsy
outt_cond structure itcsy.
data : value(20), value1(20). "do your own declarations
Read int_cond table index 1.
value = int_cond-value.
***Use FM Read text and store the text in value1 and pass it back to SAPscript as shown below
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
Just rough idea given above.
Close the thread if your question is answered and reward points to all useful answers.
Regards,
SaiRam -
Problems with printing the text in JTextPane
Hello
I need to print the text in a text pane. It prints the first page of the text pane and it doesn't print the rest of the text. I don't know what the problem is.
The code I am using, is below. I
Thank you.
LilyLay
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
public class PrintUtilities implements Printable {
private Component componentToBePrinted;
public static void printComponent(Component c) {
new PrintUtilities(c).print();
public PrintUtilities(Component componentToBePrinted) {
this.componentToBePrinted = componentToBePrinted;
public void print() {
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(this);
if (printJob.printDialog())
try {
printJob.print();
} catch(PrinterException pe) {
System.out.println("Error printing: " + pe);
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(g2d);
enableDoubleBuffering(componentToBePrinted);
return(PAGE_EXISTS);
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {if (pageIndex > 0) return (NO_SUCH_PAGE)
prevents printing any more than the first page.
change >0 to >= numPages
Howard Amos -
Printing the text in JTextPane
Hello
I need to print the text in a text pane. It prints the first page of the text pane and it doesn't print the rest of the text. I don't know what the problem is.
The code I am using, is below. I
Thank you.
LilyLay
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
public class PrintUtilities implements Printable {
private Component componentToBePrinted;
public static void printComponent(Component c) {
new PrintUtilities(c).print();
public PrintUtilities(Component componentToBePrinted) {
this.componentToBePrinted = componentToBePrinted;
public void print() {
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(this);
if (printJob.printDialog())
try {
printJob.print();
} catch(PrinterException pe) {
System.out.println("Error printing: " + pe);
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(g2d);
enableDoubleBuffering(componentToBePrinted);
return(PAGE_EXISTS);
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);Could it be that in your print(Graphics g, ...) method you are saying if pageIndex is greater than 0 return. If you are using 0 based page numbers, that would print page 0 (the first page) and none after that.
Maybe you are looking for
-
Just bought a new printer and I received a bonus software and I cant assess it
Please help!!!
-
iPad version 4.2.1 app problems it won't. Let me download apps.it says check billing info I check everything number by number letter by letter it still won't work everything on my billing is correct
-
Getting the "Java path" defined in a Java JRE installation
Hallo! I have already tried to get some help with this issue but am still unable to get the JRE operational. What have I undertaken: 1. Uninstalled all previous platform modules 2. Removed all traces of previous plugins and registry entries 3. Re-ins
-
Where does fireworks cs6 store shortcut in mac os maverick
I'm having a new computer. I want to migrate firework and photoshop shortcuts to new system. I used to do this in windows. However I don't know how in mac. I hope a detail guide for this task. thanks in advance.
-
what number should I put in "Number of Qualifying system for right to copy" in OS mountain lion up-to-date program form? I'm a newbie on mac, just bought MBA two weeks ago. I've tried software update but it is not upgraded to mountain lion. what shou