Output an HTML file as a printable document
Hi,
in my application, I generate and display an html file which
is supposed to be printed as a single document. I don't want the
page number, date, link, title to be shown on the print out.
how do I control them not to be shown?
as an example, application creates a portfolio of a person
and displays on the screen on a new window with no file or status
bars. it needs to be printed without any extra info such as page
number, title...
thanks in advance.
Shida wrote:
it needs to be printed without any extra info such as page
number, title...
You go to each and every user of your application and open
their printer
preferences dialog box and change the options for this. Then
of course
many ornery users such as myself will change them back to the
way I want
it to print.
These are user controlled options in the client's system. I
was once,
years ago, aware of a Microsoft Active X applet that proposed
to give
web applications some control of these features for users of
a Microsoft
browser on a Microsoft operating system. Other then this
limited use
case, there is little that can be done.
Similar Messages
-
Calling html file within web.show document as a report output
/* this is blank html file included javascript for disabling mouse right click working fine*/
WEB.SHOW_DOCUMENT ('http://prod.artisticmilliners.com:8000/files/file.html','_blank');
/* this is oracle report output within model frame working fine*/
WEB.SHOW_DOCUMENT ('javascript:void(window.open("'|| URL || '","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_self');
I want to add show report output with right mouse click disable. Pleae guide how can i do it?Let me start by saying that disabling the right mouse will do nothing but frustrate users. It doesn't protect the page content from anything. There are various other ways to get the content from the page copied locally. And more importantly, this does not_ offer any kind of security.
Ok, so you have decided to do it anyway ;)
In order to make this happen, you would need to modify the report. I will assume that when you said "report" you meant Oracle Reports. Open the report file (.rdf) and edit the report's "Before Report Value".
The default value is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<body dir=&Direction bgcolor="#ffffff">Change it to this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
if(event.button==2)
alert(status);
return false;
</script>
<body oncontextmenu="return false" dir=&Direction bgcolor="#ffffff">Save the changes and retest. -
Changing a html file to a word document
hi there i have just purchased a new imac and installed microsoft office 2011 home and student.
I have made a cv on a web site which then asks you to save as a word document, the problem been is that it downloads the file as a html file so i cannot make changes to it. any ideas on how to convert it from the website to a word document. cheersWhy would you want to see the file as a page in ms word?
And could it be that MSW97 does not support html in the way that it could display the file as a page? -
Word 2013 - Error inserting an HTML file in a word document
Hello,
Here is an issue i'm having:
Open a blank doc in Word 2013
Click Insert - Object - Create from file. Then select an html file, click insert and ok.
i'm always getting the below error message:
I can reproduce this issue on multiple machines.
Office 2013 preview and Office 2013 RTM are getting same error.
Anyone else ?
ThanksHi Christophe_P,
I’m able to repro the behavior in my test environment as per your repro steps.
An Office repair does NOT impact the issue for me.
I’ll report the issue to the Office product group.
A possible workaround:
In a Word 2013 document>Insert tab > Text group > Click Object
In the Object dialog, click the Create New tab
Select Microsoft Word Object; then click OK
In the newly embedded/activated Word doc object, click Insert tab > Text group > Click the Object dropdown arrow; then choose “Text from File…”
In the Insert File dialog, navigate to; then select the html file; then click Insert.
Bill Go - MSFT -
Smart Forms - Attaching HTML file as an attachment in Mail
Hai,
I have following requirements. I have to send the Payment Advice document output as a HTML format to the vendors.
I am able to get the smartforms output as html file. The output of smartforms i am capturing
call function '/1BCDWB/SF00000170'
exporting
control_parameters = w_control_parameters
output_options = w_output_options
user_settings = 'X'
w_t001 = w_t001
w_reguh = w_reguh
w_regud = w_regud
w_e1idrs1 = w_e1idrs1
importing
job_output_info = w_job_output_info
tables
t_item = t_item
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
w_xmloutput = w_job_output_info-xmloutput.
*-SAP Smart Forms: Result of XSF Transformation
w_htmldata = w_xmloutput-trfresult-content[].
Currently the w_htmldata informations are stored in the form of RAW 1024 characters.
Using the below mentioned FM the attachment information i am passing through
contents_txt = it_message
parameters. The contents_txt support only 255 characters. But the smartforms returns RAW 1024 characters. When the HTML attachment is not showning the content properly and the data displays is misaligned. Kindly give me the suggestion how to overcome this issue !
call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ''
sender_address_type = ''
commit_work = 'X'
importing
sent_to_all = w_sent_all
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.Have you upgraded to Yosemite? Then you could send the attachment using Mail Drop.
You can use Mail Drop to send files that exceed the maximum size allowed by the provider of your email account. Mail Drop uploads the large attachments to iCloud, where they’re encrypted and stored for up to 30 days.
If you have an iCloud account and you’re signed in to iCloud when you click Send, Mail automatically sends the attachments using Mail Drop. Mail Drop attachments don’t count against your iCloud storage.
If you don’t have an iCloud account, or if you’re not signed in, Mail asks you whether to use Mail Drop (select “Don’t ask again for this account” to always use Mail Drop).
If a recipient uses Mail in OS X Yosemite, the attachments are automatically downloaded and included in your message just like any other attachment. For other recipients, your message includes links for downloading the attachments and their expiration date.
You can turn Mail Drop on or off for an account. Choose Mail > Preferences, click Accounts, select your account, click Advanced, then select or deselect “Send large attachments with Mail Drop.” -
Help with an HTML file in Flash.
Hi there.
I'm attempting to import an html file into my flash document
into a textfield on a movie clip. The text works fine, as does the
css I have attached, but the <a> tag will not work. I've
attached my Actionscript and HTML files in the hopes that someone
will be able to give me a hand! Thanks in advance.
~Vanessa
Hi, here is my ActionScript code:
function addArticle(sLinkage:String):Void{
if(oOpenedArticle[sLinkage]!=undefined) {
oOpenedArticle[sLinkage].swapDepths(nTopDepth);
return;
function loadArticle():Void {
var nWidth:Number = mcDisplayBackground2._width;
var nHeight:Number = mcDisplayBackground2._height;
var nX:Number = mcDisplayBackground2._x;
var nY:Number = mcDisplayBackground2._y;
this.createTextField("tArticle", this.getNextHighestDepth(),
nX, nY, nWidth, nHeight);
tArticle.multiline = true;
tArticle.wordWrap = true;
tArticle.textColor = 0x000000;
tArticle.html = true;
tArticle.condenseWhite = true;
function loadData():Void {
var lvArticleContent:LoadVars = new LoadVars();
lvArticleContent.onData = function(sHTMLData:String):Void {
tArticle.htmlText = sHTMLData;
var cssStyles:TextField.StyleSheet = new
TextField.StyleSheet();
cssStyles.onLoad = function():Void {
tArticle.styleSheet = this;
lvArticleContent.load("about.html");
cssStyles.load("aof.css");
var nTopDepth:Number;
var oOpenedArticle:Object = new Object();
mcAboutButton.onRelease = function():Void {
loadData();
gotoAndPlay(20);
loadArticle();
And my HTML:
<html>
<head>
<link href="aof.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#666666">
<p class="bodystyle" align="top" valign="top">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif">
<br />
<center>
<h2>CONSULTATIONS</h2>
<font color="#000000" size="-1">
Click <a href="tutorials.html">here</a> for a
tutorial.
</p>
</body>
</html>Hi
OK, your path has to be fully qualified, tutorials.html
doesn't work but
http://mysite/tutorials.html
should.
When you think about it the swf doesn't know where it is, so
calling tutorials.html has no starting reference.
Placing a fully qualified path enables your link to find its
target, irrespective of where the swf is.
Although this is not true when called across domains, thats a
whole new game.
Hope it helps -
Generating WebHelp output in .html format (vs in .htm format)
We're using RoboHelp X5. The Developers want us to generate
the Help output with .html file extension (vs. .htm file
extension). Could you please let me know how do we go about
this?I would strongly resist that because you are making a rod for
your own back for no useful purpose whatever.
You have to manually change each topic file name within
Project Manager and make sure you specify the extension for the
start page when you generate. I think that will ensure all files
are HTML but check it out. Also check out that everything works as
whilst that will give the right file extension, I haven't tested
search, index, glossary etc.
Also bear in mind there is no way to make RH create new files
with that extension. You have to remember to do it manually
yourself.
Unless the developers can come up with a very persuasive why,
which does not include "because we are the developers", a
suggestion that they do a foxtrot with Oscar might be appropriate. -
BSP to display an HTML file in local drive
Hi,
I am developing a BSP application, where after accepting the some parameters from users in the initial screen, I have to open a document in KPRO based on the values entered by the user and take the HTML file attachmet from KPRO document and store it in Local drive then display that HTML file in the BSP screen. Is it possible to do?If yes, how to do this. It is not compulsory to store the HTML locally, I have to display the html page in BSP.
This BSP will be called from Enterprise Portal.
Regards,
Sathishsathish,
so you want to display a html page in BSP. If i understood your requirement correctly,
you will be having the path of the file so just use the below code to display it in the bsp.
<a href=" http://w3.hr.xxxxxxxxxxxxcom/people/asp/globalCompetencies.asp"
target="_blank" STYLE="color:blue;font-size:11; font-face:arial;"
OnClick="window.open(this.href,'_blank',
'width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
return false;"
><%=otr(YP_HRPA/GLOBAL_COM)%></a><
regards,
manasa -
HTML File Import into InDesign - Reg.
Dear All
I want to import html files into Adobe indesign document...
But indesign does not support html files...Please give me ur Valuable suggestion.
(*) I can find one of the method is HTML->XML->InDesign
(*)Is it Possible to Load HTML File to InDesign?
(*)Is it possible to Import any otherway?
So Please anyone can give me the Solutions, and I am waiting for favourable answers...
Thanks & Regards
T.R.Harihara SudhaNDear Kvern and Sagpogov,
Many thanks for your suggestion.
Yah!. I have convert the HTML Document into XML document, using Find / Replace format.
Example :
<HTML> </HTML> is change to <?xml version="1.0"?><chapter>...</chapter>
likewise, all the tags are convert as per the HTML document into XML File.
Same as <img href="..."> also convert as <Figure ...> </Figure> Tag.
Table Tags
<Table...><TH><TR><TD>...</TD></TR></TH><TR><TD></TD></TR></Table>
as converted
<Table ...><thead><row><entry>... </entry></row></thead><tbody>...</tbody></Table>.
No Problem. Its working fine.
Thanks & Regards
T.R.Harihara SudhaN -
How to get multiple html output file from an xml document via xslt?
Hi,
the purpose is to generate multiple html output file from one xml file
depending on special tag.
exp: i have an xml file which contains sevreral articles so how to get each article section in an independant html file
Thanks for helpNot a standard feature of XSLT. But Michael Kay's XSLT implementation, SAXON, provides that as an extension. Get it here:
http://saxon.sourceforge.net/ -
Converting Smartforms output content into HTML File
Hi,
I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
I am able to get the Smartforms output in html format but the output is shown as binary format.
After the fm call the job_output_info parameter is holding the smartforms output content in
job_output_info-XMLOUTPUT[] (xsf content)
job_output_info-XMLOUTPUT-STSHEET[] (css content)
job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
Help me out how to handle the job_output_info details to html format.
Code
DATA v_fm_name TYPE rs38l_fnam.
DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
DATA output_options TYPE ssfcompop.
DATA job_output_info TYPE ssfcrescl.
DATA document_output_info TYPE ssfcrespd.
DATA job_output_options TYPE ssfcresop.
DATA w_control TYPE ssfctrlop.
*-Finding the Smartform Layout Name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_tdsfname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
*-Defining the output to HTML Format
*-Activating XSF Output
output_options-xdfcmode = 'X'.
output_options-xdf = space.
output_options-xsfcmode = 'X'.
output_options-xsf = 'X'.
output_options-xsfoutmode = 'A'. "
output_options-xsfoutdev = 'P863'.
output_options-xsfformat = 'X'.
*-Calling the Smartform Layout
CALL FUNCTION v_fm_name
EXPORTING
output_options = output_options
user_settings = 'X'
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
GiriHi,
Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf -
Unable to open html file in document library without saving first
I've uploaded a bunch of HTML files from a DVD to a document library on our Sharepoint 2013 Enterprise server. When I try to open one of the html files it wants to save the file instead of opening it. If I choose to open the document library in Explorer
I'm able to open the html files w/o issue.
What's causing this? I know there is an option to set the file handing to permissive, but I'd rather not do that.Carl,
See this link - http://sharepoint.stackexchange.com/questions/39020/how-do-i-prevent-sharepoint-from-asking-to-download-html-files-to-my-local-machi
The allowed mime types are defined in theSPWebApplication.AllowedInlineDownloadedMimeTypes
Property
Here is small PowerShell utility function I use:
function Add-SPAllowedInlineDownloadedMimeType{
[CmdLetBinding()]
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipeLine=$true)]
[Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind]$WebApplication,
[Parameter(Mandatory=$true, Position=1)]
[string]$MimeType
process{
$actualWebApp = $WebApplication.Read()
if ($actualWebApp.AllowedInlineDownloadedMimeTypes -notcontains $mimetype)
Write-Host "Adding MIME Type..."
$actualWebApp.AllowedInlineDownloadedMimeTypes.Add($mimetype)
$actualWebApp.Update()
Write-Host "Done."
} Else {
Write-Host -ForegroundColor Green "MIME type is already added."
And it can be used like this:
Add-SPAllowedInlineDownloadedMimeType -WebApplication http://mywebapp -MimeType "text/html"
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Hi,
I write the some asp code to save the word file from client machine to server machine , and convert it into the html file.
it working fine when i debug the code into the visual studio but when i deploy code on iis it give me a error 'This command is not available because no document is open' , while i try to save file into html format.
lot of time i try this give all the security full access to iis user and other things .
can any one help me. i fully frustrated from this problem.
my need only upload the word document from client to server machine and convert it into the word document.
only IIS give me the problem, suggest me what setting i need to do in iis
please help me humble requestHi,
In this forum we mainly discuss questions about Office client questions and feedbacks, issues related to coding are not supported here.
Based on the description, although the question is about converting Word documents, it's more likely to be a permission issue, the question is better to be posted in the IIS.NET forum:
http://forums.iis.net/
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Melon Chen
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. 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] -
HTML FIle Output Error thru R/3
Hello All,
I have a HTML file on the SAP Server SMW0 Transaction in R/3.
The language of the HTML File is Spanish.
When i see the output from this transaction I'm getting the same content as in the HTML File.
But when I'm executing the file thru an ABAP Program I'm getting some junk values in the output screen.
But, when I chk the VIEW SOURCE Option of the same output ther the content is in the correct format.
Is this a unicode problem .
I can see a small code where the ANSI is specified.Instead of this can we specify any UTF or any unicode formats ?
mso-ansi-language:ES
Request u guys to help me out.
Regards,
Deepu.K<i>>>>Which log file records this kind of error.....</i>
You can try the default trace files located in:
/usr/sap/<SID>/<DVEBMGS[XX]>/j2ee/cluster/server0/log
Also, perhaps something in the 'std_server[X].out' file within the folder
/usr/sap/<SID>/<DVEBMGS[XX]>/work
However, this gets overwritten with each restart unless you have configured the java engine to retain old log files in the instance profile (e.g. with parameter 'jstartup/keep_old_logfiles=3').
Regards,
Jin -
Execute command and save output in a HTML File
Hello Guys,
I have a requirement and for that i have to do following. a) read a file in an array and then execute a command for each value in that array. after that i want to store the output of command and value of array in another array.
i am doing something like below.
set objtextfile = objfso.opentextfile _
("c:\temp\aaaa.txt", forreading)
j=0
Do until objtextfile.atendofstream
redim preserve arr123(j)
arr123(j) = objtextfile.readline
j = j+1
Loop
for each server in arr123
chk_status = "command" &" "& server
set objexecobject = objshell.exec(chk_status)
'Here i am not sure how to proceed further to achieve what i described above.
Next
Can someone help me with this?
-KAKA-Thank you for your response.
So here is what i want to do.
Query a database using odbc from my management server (odbc is configured and connection is tested) and based on the query it will result out few list of servers. then from the same management server i want to execute a command against all the resulted server
(management server has a binary which can execute remote action). this remote action will get output back.
then i would like to store the name of server and resulte output in a html file which should look like below.
which i will later host on apache.
YOu do not need to move things in and out of arrays and files.
>>>> You are right but as i stated, i am not a core programmer and due to nature of my job i have to work on perl, shell and VB Script, apart from my actual technology so it becomes difficult to write it with perfection.
I hope you understand.
-KAKA-
-KAKA-
Maybe you are looking for
-
Safari on my iPad has a problem with the server
Despite the connection to WLAN when trying to open an internet address is the following error message: "Page can not be opened because Safari could not connect to server" How can I fix this? cyranobandi
-
DocFlex/Javadoc 1.5.6, a multi-format doclet development tool and more
DocFlex/Javadoc is both a multi-format Javadoc Doclet and a rapid doclet development tool, which allows easy creation of professional quality Java API documentation generated by Javadoc in various output formats. More in this article: Key Features Av
-
Problems installing windows on a clean Mac Pro internal drive - issues and questions
Hey, I have a Mac Pro mid 2010 with the following drive configurations: 3x120GB SSD in a RAID-0 as Boot (OS X 10.8.6) and SSD Scratch (working files) 3x4TB HDD in a RAID-0 as Master (data) and HDD Scratch (downloads) 1x100GB SSD (Spare...to install w
-
Can't open raw file after update 6.6 camera raw
Just updated camera raw in photoshop 5 on a mac pro running 10.6.8 os wont open a raw file and program freezes and must force quit to close. Lightroom update has problems as well. Don't recommend updating to either
-
Customer balance display shows different balance than Profit center balance
Dear All Customer balance display shows different balance than Customer balance with profit center. Adivse us for the same. Viral