Print reports in HTML DB
HTML DB can produce nice reports in web page,
while the layout changes when printed.
such as , I use LOV for field 'status',
when printed, the checkbox disappeared, and the internal code instead of display code is printed.
if HTML DB does not support grace print, is there any other tools recommended? something for rapid development.
we use mutiple check box,
such as field 'packaging', its value may be :
STUFFING, POPCORN, STAPLES,...
one or two of them, so one of two of the check box
may be selectd.I assume what you mean is that you're displaying multiple checkboxes for one field? Any you want multiple selections to be printed when you use the print-friendly format?
It appears that the print-friendly format isn't so friendly with this situation. Besides the obvious fact that you need an appropriate data type in the underlying table to handle multiple selections, it looks like this situation was just not considered when the print-friendly formatting was setup.
Or, we're both just missing something that will allow it to work the way you're hoping. ;>)
Earl
Similar Messages
-
IE opens during Print Report (HTML)
I am using Labview 8.5, "Print Report" with HTML type. When I execute the VI, Internet Explorer (I have IE 7.0 installed under Win XP) opens up and stays open until I manually close it, even after the Print Report VI completes.
Has anyone else had this behaviour?
I am using <Table style="page-break-before: always"> <TR><TD></TD></TR></Table> tags to build a formatted report.
Is it possible that I have a bogus HTML tag?
I use Print Report with HTML (Labview 8.0) with Internet Explorer (IE 6.0 under WinXP) and it just prints silently. I much prefer that type of opearation.
Is there a known difference between Labview 8.0 and 8.5 for this behavior? Could IE 7.0 operate differently than IE 6.0?
I would appreciate any help here.
Solved!
Go to Solution.Hello EdH,
Are you using the same code in 8.5 that you had in 8.0?
Andy Chang
National Instruments
LabVIEW Control Design and Simulation -
Open & print an existing HTML report
I want to open a previously created, saved & closed HTML report for printing. I don't see any thing in the Report Generation vi group for opening existing reports and wasn't sure how to go about it (if at all possible) using the standard file open options to get to a report. Any ideas? Thanks.
Hello,
To print and view an HTML report you have already saved to disk, just create a new report, and use the "Append User Formatted HTML to Report.vi" to append the entire HTML content of the report to a new report. Then use the "Print Report.vi" and "Open HTML Report in Browser.vi" to print and view it. This is the easiest way I can think of...here is a screenshot showing what I mean:
Hope this helps,
-D
Message Edited by Darren on 04-18-2006 01:31 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
print_and_save_report.jpg 84 KB -
Can not print report when using HTML or DHTML
Can not print report when using HTML or DHTML. When I open the report and click the print icon I get a small blank dialog box and then nothing. If I change to activex it works and I can print.
Any Ideas?
Thanks
JeffHi,
I did not come across this situation before. Did you apply any fix packs. Try to check whether its a issue which can be fixed by applying fix pack( try to check release notes of fix pack and see if they mentioned any thing about this).
Thanks,
SK. -
Html region print report in APEX 3.0
Hi all!
I have some HTML regions on some pages of my application.
Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
Is't any idea or any link ?
Regards,
RomanHi all!
I have some HTML regions on some pages of my application.
Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
Is't any idea or any link ?
Regards,
Roman -
Jasper report on HTML when one image loaded from database and for the other
How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
My code
ByteArrayOutputStream baos = new ByteArrayOutputStream();
exporter = new JRHtmlExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
exporter.exportReport();
byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
Can any one help pls
Message was edited by:
ameet.auhey sorry for posting it in this forum.
but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
byte image[] =(byte[]) outData.get("image");
ByteArrayInputStream img = new ByteArrayInputStream(image);
hmimg.put("P_PARAMV3", img);
print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
bdata= JasperExportManager.exportReportToPdf(print); -
Alright, what am I missing? Print Report
Troubleshooting a printer problem today, I had occasion to open the front panel of "Print Report.vi" (report generation toolkit). There's nothing there! Both the "error" and "no error" cases just pass the report ref through without operating on it, calling a DLL, etc. So....how does it get the data to the printer?
Solved!
Go to Solution.It's part of a LVOOP class. You're looking at the VI for the parent class, but the wire will always carry a child class (HTML, Word, Excel, etc). The Print Report member of the child class is the one that will be executed - overriding the parent - and it contains the actual code.
-
Print report does not work in built mode (LV7.1+XP)
Good morning,
I've read some threads about the topic in this Q, but no solution. So my hope is that NI has resolved the problem. Here it goes:
In normal edit mode I can use the Print Report.vi (using the default win printer) to print out some data. The generated report is a standard NI report (that is NOT HTML).
When building an application this no longer works. No data is passed to windows (the printer icon in the system tray never appears) - and hence no output on the printer!
I use WinXP and LV7.1 in both modes. The printer is a HP2300 LaserJet but I've also tried using the old stable Canon LBP 8 II on the FILE: port - but in .exe mode the file box does not appear.
I really hope that NI has a solution
for the problem since we need the built application on several client. And we do not want to pay for several LV licenses.
Speculations on both the application builder and report generation tools have been given in previous threads... However, these gave no solution and all threads are from before LV7.1.
Thanks in advance!
MartinSkinny wrote:
> In normal edit mode I can use the Print Report.vi (using the default
> win printer) to print out some data. The generated report is a
> standard NI report (that is NOT HTML).
>
> When building an application this no longer works. No data is passed
> to windows (the printer icon in the system tray never appears) - and
> hence no output on the printer!
>
> I use WinXP and LV7.1 in both modes. The printer is a HP2300 LaserJet
> but I've also tried using the old stable Canon LBP 8 II on the FILE:
> port - but in .exe mode the file box does not appear.
>
> I really hope that NI has a solution for the problem since we need the
> built application on several client. And we do not want to pay for
> several LV licenses.
Are you sure you checked the "NI R
eport Support" under the Advanced
button of the Installer tab in the application builder?
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Form 6i printing report directly to printer
Hi Professionals,
I am in badly need of help to print my barcode report directly to printer from form, currently it is working fine if i make it preview first and then user has to select network printer to print, but user is not accepting that manual step, and therefore we are unable to launch our material management module.
MY CURRENT CODE WHICH WORKING FINE WITH PREVIEW..................
add_parameter(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PREVIEW');
add_parameter(PL_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
add_parameter(pl_id,'paramform',TEXT_PARAMETER,'NO');
add_parameter(pl_id,'STR',TEXT_PARAMETER,:IM_STR_ISSUE_MASTER.STR_CODE);
add_parameter(pl_id,'BAT',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.BAT_ID);
add_parameter(pl_id,'DIV',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.GRP_CODE);
add_parameter(pl_id,'GRP',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.SUB_GRP_CODE);
add_parameter(pl_id,'ITM',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.ITEM_CODE);
add_parameter(pl_id,'COPIES',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.QTY);
RUN_PRODUCT(REPORTS,'F:\IMS\REPORTS\STOCK_IN_BARCODE.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
IF I CHANGE IT TO THE FOLLOWING FOR DIRECT PRINTING IT IS NOT WORKING
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, 'SOLABEL');
I appreciate any efforts to resolve this issue.
Thanks
Ahon
Edited by: [email protected] on Oct 4, 2009 11:20 PMGuide to Implement local printing on client in 10gas/9ias
To archive this goal we have used orarrp(Oracle Reports Remote Printing Utility), which can be downloaded from the OTN website http://otn.oracle.com/sample/products/reports/index.html.
Steps:
1.Add the required ORARRP mime types to the Oracle HTTP Server configuration.
(Note: This will be the Oracle HTTP Server belonging to the Oracle Application Server 10g/9ias middle (BI & Forms) tier)
Do this manually by editing the httpd.conf
or
via the Oracle Application Server 10g AS Console e.g.
Navigate to the Middle Tier Components Page
Click on HTTP_Server -> Administration -> MIME Types
NOTE: MIME types added in httpd.conf are as per requirement mode in which report has to be run e.g. pdf, rt(rtf) and html etc. syntax for manual entry in httpd.conf is given below.
AddType application/x-orarrp-text rrpt
AddType application/x-orarrp-ps rrpp
AddType application/x-orarrp-pdf rrpa
AddType application/x-orarrp-rt rrpr
AddType application/x-orarrp-ini rrpi
AddType application/x-orarrp-html rrph
2. Create an aliasmatch in forms.conf pointing to a physical directory \tmp- for example, directory will be c:\tmp
Do this by manually editing the forms.conf
or
via the Oracle Application Server 10g AS Console e.g.
Navigate to the Middle Tier Components Page
Click on HTTP_Server -> Administration -> Advanced Server Properties -> forms.conf
Add a line like :
# Virtual path for physical directory of temp
AliasMatch ^/tmp/(..*) "C:\tmp/$1"
** IMPORTANT NOTE **
The advantages of making the changes via EM / AS console, rather than editing the files manually, are:
- the EM / AS console will put the mime type entries in the correct place
- the EM / AS console automatically issues a 'dcmctl updateconfig' which synchronizes the file changes with the Infrastructure Metadata Repository
- the EM / AS console will do the required restart of the HTTP Server component
(Only the HTTP Server needs to be stopped and restarted – Oracle AS 10g components can remain up and running)
If the changes are made manually then the following commands must be issued after the changes to httpd.conf and forms.conf have been made.
Run these command at run prompt
DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat updateconfig -ct ohs -v -d
(to synchronize the changes with the Metadata Repository)
DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat stop -ct ohs -v -d
DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat start -ct ohs -v -d
where DRIVE: is the drive where \oracle\frhome_1\ is installed.
3. Copy and run orarrp.exe on client machine in program files\orarrp\ folder.
4. Set value of options '”choose_printer=no” in orarrp.ini created at above folder.
5. Add following lines in your code of run_report procedure.
In declare section
vc_file varchar2(225);
In begin block add
/* Generate a pseudo unique filename */
vcfile:=:global.user_code||to_char(sysdate,'YYYYMMDDHHMISS');
vcfile:=vcfile||'.rrpr';
/* In this example - output will be rtf so adding .rrpr extension */
set_report_object_property(repid, report_filename,store_var);
set_report_object_property(repid, report_server, :global.r_server);
set_report_object_property(repid, report_execution_mode, batch);
set_report_object_property(repid, report_comm_mode, SYNCHRONOUS);
set_report_object_property(repid, report_destype, file);
set_report_object_property(repid, report_desformat,'rtf');
set_report_object_property(repid,REPORT_DESNAME,'C:\tmp\'||vcFile);
---- path can be made dynamic by making a database entry in makess.path_entry for tmp folder and
---using proc_path procedure from path lib.
:GLOBAL.PrintOutPut := vcFile;
In Run report section make following change:
vc_reportserverjob := RUN_REPORT_OBJECT(repid,pi_id);
report_job_id:=substr(vc_reportserverjob,length(:global.r_server+2,length(vc_reportserverjob));
v_rep_status:=report_object_status(vc_reportserverjob);
if v_rep_status='FINISHED' then
web.show_document('/tmp/'||:global.printoutput,'_blank');
else
message ('error when running report'||v_rep_status);
end if;
Edited by: amitphynyl on Oct 5, 2009 1:36 AM -
Could anyone recommend any good printing/report writing tools that can be
integrated with Forte? I have found these capabilities to be less than
satisfactory from within Forte itself.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi Matt,
We have a enterprise strength report writing product (Report Workshop
for Forte) built in Forte having native support for Integrating with
Forte Applications. You can visit our website
http://www.indcon.com/products for further information. This product is
now available for evaluation and sale.
Report Workshop For Forte:
Report Workshop for FortéTM is an enterprise strength, distributed,
report development and management environment. Report Workshop is a user
friendly, adaptable, scaleable and versatile environment to develop and
distribute reports. It has the capability to scale with increasing load
and makes optimal use of resources owing to its server-centric,
multi-tiered architecture. It supports multiple report formats, multiple
RDBMS and even non-relational data.
Forté is ingrained in Report Workshop, providing seamless integration
with Forté applications. Report Workshop also leverages Forté's
capability of providing a scaleable architecture for distributed
business applications.
Report Workshop Capabilities
WYSIWYG Report Development Environment
*Browse distributed database schema in easy graphical way
*Jump start with default report formats
*Override report formats to suit specific needs with point and click
ease
*Preview reports with actual data
*Iterate above steps until perfection is reached
Sever Based Enterprise Strength Reporting
*N-tiered scaleable application
*Share the report objects
*Execute once and share the reports among end users
*Optimizes database connections
*Minimal network traffic with capability of shipping one report page at
a time
Distribute reports with state-of-the-art distribution channels
*E-mail
*Publish HTML on Web
*Network printing
*View it with viewer
*Save in Excel format for further analysis
Schedule Management
*Create schedules for periodic execution and distribution
*Customize schedules to suit your organization's holiday plan
*View history of schedule runs
Version Management
*Retain report results for future use
*Define purge policy
*View/Print/E-mail versioned reports
Native Forté Application Program Interface
*Integrate your Forté application with Report Workshop
Rich Features
Support for multiple report formats
*Tabular
*Grid
*Group
*Free
*Composite
Support for multiple data sources
*SQL (Oracle, Sybase, ODBC, DB2, Ingres and Rdb Databases)
*External Data Source ( Forte Applications)
.CORBA Objects
Client and server based printing (on NT servers)
For additional information about Report Workshop for Forté, please feel
free to contact us.
An evaluation copy of Report Workshop is available and can be downloaded
from the Internet.
Indus Consultancy Services
140, E.Ridgewood Ave.
Paramus, NJ 07661
www.indcon.com
Phone: 201-261-3100
- Pradnesh Dange
From: Matt Luce[SMTP:[email protected]]
Reply To: Matt Luce
Sent: Wednesday, March 03, 1999 3:33 PM
To: [email protected]
Subject: printing/report writing
Could anyone recommend any good printing/report writing tools that can
be
integrated with Forte? I have found these capabilities to be less
than
satisfactory from within Forte itself.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Print report through application server
we are running our application through 9ias .we are unable to print the report through printer attached to machine other then machine having application server
installed on it .Hi Arun,
If you want users to print reports on their local printers, you must first share those local printers and install the shared printers (now network printers) in the Reposts server.
then add keys to your cgicmd.dat to correspond to each printer of each user who want to print locally. Each user who want to print locally must use cgicmd.dat key specific to his printer.
For example, user1 wants to print in hp laserjet 4 printer in his PC named pc1 and printer name is "hp laserjet 4" ; user2 wants to print in epson lq570 in his PC named pc2 and his printer name is "epson lq570"
then in your cgicmd.dat file add lines similar to the following:
laserjet: destype=printer desname="\\pc1\hp laserjet 4" server=report_servername userid=user1/password@db %*
lq570: destype=printer desname="\\pc2\epson lq570" server=report_servername userid=user2/password@db %*
for user1 to print to his local printer (hp laserjet 4)
the url to print will be:
http://<app server hostname>:<port>/reports/rwservelet/?laserjet&report=reportname.rdf
for user 2:
http://<app server hostname>:<port>/reports/rwservelet/?lq570&report=reportname.rdf
To allow all users to print at any local printer of their choice, be it local or network printer consider using ORARRP (Oracle Reports Remote Printing Utility) which can be downloaded from the OTN Website.
Try this link:
http://otn.oracle.com/sample_code/products/reports/index.html
Regards,
Mike -
Print Report Direct from current PC
Hi
I want to print pre printed reports direct to dot matrix Printer without Concurrent Manager in requested PC ( Print from PC not from Server ) .
So , can i do that or not ?
Thanks,
Mohamed BadrIn general you have 2 options for printing.
1) print via the server printing queue
2) download/open the report and click the print button on your workstation
there is a 2 B option. If we are talking about a HTML based report you can modify the reports in such a way that you send a java script with it that starts the printing. However this is (A) not advisable and (B) somewhat experimental and not supported ;-)
If you want to know more about printing via javascript check this page: http://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm
Regards,
Johan Louwers. -
Printing report oracle10g at client side through form
Report Mode : CHARACTER.
I am running report through oracle10g from in browser based environment from client machine.
My application server running that form. My code is following for setting the report destination type:
IF :B01.S_REPORT_TO = 'S' THEN
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,CACHE);
ELSIF :B01.S_REPORT_TO = 'P' THEN
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,PRINTER);
ELSIF :B01.S_REPORT_TO = 'F' THEN
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESNAME,'c:\temp\abc.txt');
END IF;
vrep := RUN_REPORT_OBJECT (vrepid,PRAM_ID);
web.show_document( 'http://servername:port/reports/rwservlet/getjobid'||
SUBSTR (vrep, INSTR (vrep, '_', -1) + 1)|| '?'|| 'server=REPserver','_blank');
But when i am using destype as print , the report output is directed to Application Server's printer and not in clinet computer's printer. as well as detination type is file , then specified file is stored in Application Server and not in client machine.
HOW CAN I PRINT REPORT DIRECTLY AT DEFAULT PRINTER OF CLIENT COMPUTER OR SAVE THE FILE AT CLIENT COMPUTER'S HARDDISKLionel wrote:
Java bean is not supported anymore !
[http://fdegrelle.over-blog.com/article-22717699.html|
I strongly suggest that you read the article carefully and understand it it before you start spreading unverified rumors and mislead people.
The article you pointed out in your post is a [url http://en.wikipedia.org/wiki/Disclaimer]Disclaimer wrote by the author of the Java Beans/PJCs found on that site.
I will try to explain to you what Francois, the author of the site is trying to tell you in that Article and I'll be more than happy if Francois corrects me when I'm wrong.
The article is clearly stating;
Quoting the article:
This material, these articles do not come from Oracle, have nothing to do with Oracle and are certainly not taken into account by the Oracle support.
This mean's that the material pointed and the articles are not made, distributed or related to Oracle Corp. and "Oracle Support" will not help you if you have any questions or clarifications about these articles and/or materials. And the only person(s) will help you with them is the person(s) who wrote them and they are not from Oracle and if you have any questions you should ask send it to the e-mail address found on the homepage and not Oracle.
This does not mean by any scope or dimension or by any mean that Java Beans are not supported to be used with Oracle Forms.
Java Beans ARE supported to be used with Oracle Forms and in the next release Java has more integration with Forms.
Francois, please correct me If I'm wrong.
Thanks
Regards
Tony -
Problem to print report with graph
Hello,
I make a vi to print or save in html file my front panel results. In the results, I have a graph and to save it in my report I use the "Append Control Image to Report.vi".
The problem is when I print the report the Image is in the top of page and it's size is limited by the size of the left header text. And the top text (not header but just the Title text) is placed after the image.
Now when I save it in the HTML file, I have any problems in the structure of my report.
If you have suggestions, I listen to.
I have an idea to divert the problem is to make a vi to print the HTML file but I don't know to make it.
Thanks for help.
I have attach the file. A man please print the report and say me if the struct
ure is good. Like this, I know that the problem is a problem to my computer config or print config.(Use Labview 6.1)
Thanks for help.
SAM
Attachments:
Report_generation.zip 34 KBHi midtisam,
I've run your VI to test it for you. I believe I am seeing the same bahavior that you are. The graph always shows up at the top of the page even though it is added after the header. Also, I tried creating an HTML file and it worked correctly. I would suggest doing this since it seems to work better.
Now, you can not use the Print Report VI with HTML reports. If you are able, I would suggest just creating the HTML report and either printing it from your computer through Internet Explorer or sending the file to whoever needs it. Best of luck.
J.R. Allen -
Through BI Publisher i need to send my html output report to oracle ADF. There user needs Print option on the html output to his local printer..This html will come as pop up..There will not be any File-options. Is there any possiblity through Bi Publisher.
Thanksyou have gone beyond the BIP world, and you are into ADF world, but try adding your options in ADF popup page that you are throwing
Maybe you are looking for
-
How to denormalize my data properly?
Hello, I have two tables like this with a one to many correspondence: CREATE TABLE word word_id int, the_word varchar CREATE TABLE word_validations validation_id int, word_id int, -- References the lexeme table user_id serial, -- References the user
-
Static content which can be changed in specific time period.
Hi All, I have a requirement where I need to create a application and put some static data ( text and images) in that. for example all projects running under one company or like security policies of a company( which won't change daily basis, it will
-
To escalate or not to escalate
We have a situation where we determine the agent for a workflow using a rule but if the rule fails to find an agent a default user is then read from a custom table. When the default user is used as the agent we do not want the normal escalation proce
-
Whenever I try to open something in Safari, it says blocked plug in. This did not happen a month ago. How do I correct this?
-
Can we add Cf 1.0 in to WM 6.0?
can we add Cf 1.0 in to WM 6.0? I need to run an app of Windows Mobile 5.0 into Windows Mobile 6.1.