Format-less Printing of reports
I need to print a report (Developer 6) without any format. Means just like DOS-base printing. I have a dot matrix printer and require to print my report with defualt draft printing of dot matrix. If any one can help me, just mail me at [email protected]
Fawad
I guess your requirement is a simple character mode printing. Please see the Building reports manual at
http://otn.oracle.com/docs/products/reports/content.html
Thanks
The Reports Team
Similar Messages
-
When I try to print a report, a screen comes up but does not show any of the print options. All that shows up on the screen is a "Print" button and "Close" button. When I press "Print" I get and error message "Invalid Scale."Any ideas how to fix this??
Hi,
Can you give format while printing the report.
The format can be given during choosing print specifcations.
Choose any of the below format and try it out.
X_58_170
X_65_200
X_65_255
Formats suitable
X_PAPER
X_SPOOLERR
X_65_132
X_90_120
X_44_120
X_65_80
Regards,
Ashok -
Print a report on doc format truncate data
hi
I have a report launching with a form in an oracle applications, when I print a report on pdf format looks ok
but when I print the same report on doc format truncate data on left and right side.
Can you help me
thanksHi Herbe
Reports does not support .doc format. Are you referring .rtf format?
In any case, you must contact Oracle Support to get the issue resolved.
Regards
Sripathy -
How to Print a text in bold format in a classic report ??
How to Print a text in bold format in a classic report ??
hi
u can use
<b>FORMAT INTENSIFIED ON.</b>
regards
ravish
reward if useful -
While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट. Word file generated of the same report have correct hindi इ matra position and also pdf generated from this word file also contains the same.
-
SQL Plus command to print a report in Landscape format
Hi,
what is the SQL Plus command to print a report in Landscape format?841731 wrote:
Hi,
what is the SQL Plus command to print a report in Landscape format?SQLPlus doesn't print, and it doesn't know about 'landscape' vs. 'portrait' any more than it knows about fonts. the only 'formatting' it knows is line size, page size. And all it does with line size is know where to insert a CR/LF pair (windows) or a CR (*nix). The only thing it knows to do with page size is repeat column headers.
The rest is up to whatever application you use to open the pure asciii text spool file. -
How to remove Pagebreak while printing a Report in Html format
Hi there,
I am printing the Report Output as HTML format and I need to avoid pagebreaks ... Is there any way to avoid.
I did tried PAGESTREAM ... but it prints the next page in a separate file ...
Can anyone give a solution for this !!!
TIA
Vaithy. Shello,
when you use the output-format HTML or HTMLCSS, oracle reports creates a representation of the layout as it would be created on paper in these formats; therefore there are pagebreaks.
there is no way to switch them off.
regards,
the oracle reports team --pw -
Printing directly to printer in Reporting Services 2008 problem
We have recently installed a new SQL 2008 server. I have an application that prints an SSRS report (2005) directly to the printer. If I change the reference to point to the new SQL 2008 server and run the application, the report is printed but the font size is huge and the report doesn't fit on the paper. The only change I made in the code is the reference, that is it. Any ideas why this is happening?
ThanksI guess I wasn't clear with my current configuration. I am using the SOAP interface to print the reports directly to the printer. I have a web reference (ReportServer) pointing to the new server and here is the code I use to print the report:
public class ReportPrinter
//ReportingService rs;
ReportServer.ReportExecutionService rs;
private byte[][] m_renderedReport;
private Graphics.EnumerateMetafileProc m_delegate = null;
private MemoryStream m_currentPageStream;
private Metafile m_metafile = null;
int m_numberOfPages;
private int m_currentPrintingPage;
private int m_lastPrintingPage;
private string _printer = "";
public ReportPrinter()
rs = new ReportServer.ReportExecutionService();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
PrintDialog dlgPrint = new PrintDialog();
dlgPrint.PrinterSettings = new PrinterSettings();
if (Common.gPrinterToUse == "" ||Common.gPrinterToUse == null)
if (dlgPrint.ShowDialog() == DialogResult.OK)
_printer = dlgPrint.PrinterSettings.PrinterName;
Common.gPrinterToUse = _printer;
else
return;
else
_printer = Common.gPrinterToUse;
private byte[][] RenderReport(string reportPath, ParameterValue[] reportParameters)
// Private variables for rendering
string deviceInfo = null;
string format = "IMAGE";
Byte[] firstPage = null;
string encoding;
string mimeType;
Warning[] warnings = null;
ParameterValue[] reportHistoryParameters = null;
string[] streamIDs = null;
Byte[][] pages = null;
string extension = null;
string historyID = null;
// Build device info based on the start page
deviceInfo = String.Format(@"<DeviceInfo><OutputFormat>{0}</OutputFormat></DeviceInfo>", "emf");
ExecutionInfo execInfo = new ExecutionInfo();
ExecutionHeader execHeader = new ExecutionHeader();
rs.ExecutionHeaderValue = execHeader;
execInfo = rs.LoadReport(reportPath, historyID);
rs.SetExecutionParameters(reportParameters, "en-us");
rs.Url = "http://hr-sqlsvr3/reportserver/ReportExecution2005.asmx";
//Execute the report and get page count.
try
// Renders the first page of the report and returns streamIDs for
// subsequent pages
//firstPage = rs.Render(
firstPage = rs.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
// The total number of pages of the report is 1 + the streamIDs
m_numberOfPages = streamIDs.Length + 1;
pages = new Byte[m_numberOfPages][];
// The first page was already rendered
pages[0] = firstPage;
for (int pageIndex = 1; pageIndex < m_numberOfPages; pageIndex++)
// Build device info based on start page
deviceInfo =
String.Format(@"<DeviceInfo><OutputFormat>{0}</OutputFormat><StartPage>{1}</StartPage></DeviceInfo>",
"emf", pageIndex + 1);
pages[pageIndex] = rs.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
catch (SoapException ex)
Console.WriteLine(ex.Detail.InnerXml);
catch (Exception ex)
Console.WriteLine(ex.Message);
MessageBox.Show(ex.InnerException +
Environment.NewLine + ex.Message +
Environment.NewLine + "Number of pages: " + pages.Length.ToString() +
Environment.NewLine + "Report Path: " + reportPath, "Error Printing");
finally
Console.WriteLine("Number of pages: {0}", pages.Length);
return pages;
internal bool PrintReport(string report, ParameterValue[] reportParameters, bool landscape)
this.RenderedReport = this.RenderReport(report, reportParameters);
try
// Wait for the report to completely render.
if (m_numberOfPages < 1)
return false;
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.MaximumPage = m_numberOfPages;
printerSettings.MinimumPage = 1;
printerSettings.PrintRange = PrintRange.SomePages;
printerSettings.FromPage = 1;
printerSettings.ToPage = m_numberOfPages;
printerSettings.PrinterName = _printer;
PrintDocument pd = new PrintDocument();
m_currentPrintingPage = 1;
m_lastPrintingPage = m_numberOfPages;
pd.PrinterSettings = printerSettings;
pd.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
pd.DefaultPageSettings.Landscape = landscape;
// Print report
Console.WriteLine("Printing report...");
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
pd.Print();
catch (Exception ex)
Console.WriteLine(ex.Message);
finally
// Clean up goes here.
return true;
private void pd_PrintPage(object sender, PrintPageEventArgs ev)
ev.HasMorePages = false;
if (m_currentPrintingPage <= m_lastPrintingPage && MoveToPage(m_currentPrintingPage))
// Draw the page
ReportDrawPage(ev.Graphics);
// If the next page is less than or equal to the last page,
// print another page.
if (++m_currentPrintingPage <= m_lastPrintingPage)
ev.HasMorePages = true;
// Method to draw the current emf memory stream
private void ReportDrawPage(Graphics g)
if (null == m_currentPageStream || 0 == m_currentPageStream.Length || null == m_metafile)
return;
lock (this)
// Set the metafile delegate.
int width = m_metafile.Width;
int height = m_metafile.Height;
m_delegate = new Graphics.EnumerateMetafileProc(MetafileCallback);
// Draw in the rectangle
// Point destPoint = new Point(0, 0);
Point[] destPoint = new Point[3];
Point point1 = new Point(0, 0);
Point point2 = new Point(width, 0);
Point point3 = new Point(0, height);
destPoint[0] = point1;
destPoint[1] = point2;
destPoint[2] = point3;
g.EnumerateMetafile(m_metafile, destPoint, m_delegate);
// Clean up
m_delegate = null;
private bool MoveToPage(Int32 page)
// Check to make sure that the current page exists in
// the array list
if (null == this.RenderedReport[m_currentPrintingPage - 1])
return false;
// Set current page stream equal to the rendered page
m_currentPageStream = new MemoryStream(this.RenderedReport[m_currentPrintingPage - 1]);
// Set its postion to start.
m_currentPageStream.Position = 0;
// Initialize the metafile
if (null != m_metafile)
m_metafile.Dispose();
m_metafile = null;
// Load the metafile image for this page
m_metafile = new Metafile((Stream)m_currentPageStream);
return true;
private bool MetafileCallback(EmfPlusRecordType recordType,int flags,int dataSize,IntPtr data,PlayRecordCallback callbackData)
byte[] dataArray = null;
// Dance around unmanaged code.
if (data != IntPtr.Zero)
// Copy the unmanaged record to a managed byte buffer
// that can be used by PlayRecord.
dataArray = new byte[dataSize];
Marshal.Copy(data, dataArray, 0, dataSize);
// play the record.
m_metafile.PlayRecord(recordType, flags, dataSize, dataArray);
return true;
internal byte[][] RenderedReport
get
return m_renderedReport;
set
m_renderedReport = value; -
Print landscape report in character mode
Hi!
It seems that I should change xxx.prt file in DESFORMAT parameter to match different kinds of printers in order to print landscape report in character mode.
Our customers are international wide. How can I do to make this setting meet every customer for printing reports in landscape style?
We will run the reports on Unix on the middle tier and customers read them in browser.
Thanks for help.
nullHi,
This sounds like a similar problem that I had (and still having). It was (is) a Bug. Go to metalink.oracle.com and reference this bug#1413754. See if this is your problem as well. My only work around was change the format of the file instead of using character mode I am now using PDF. Which is working fine for me.
~Vannette -
Print a report from Application Express direct to a CUPS Printer
Hi all, I'm new to this technology, is it possible to print a report from Application Express directly to a CUPS Printer? Can someone tell me in laymans terms how to do it? I find the terminology and documentation less than helpful.
Jeremy,
BI Publisher handles submitting reports directly to a CUPS printer. However, the APEX integration doesn't currently integrate with that portion of BI Publisher.
Here's an options:
Use the Java API of BI Publisher to build a custom Java program that would do this for you. Delivering to CUPS is part of the Java API.
Bryan -
<p>Hi,</p><p> </p><p>I have some questions regarding the printing of multiple reportat one time. Here goes the description:-</p><p> </p><p>Right now, I have jsp page to pass in the required parameter togenerate the brio report in pdf format.If i have 20 reports, I haveto go in every page to pass in the parameter to generate the reportbefore I print it out.</p><p> </p><p>My questions are:-</p><p>1. Is there any way to print 20 report at one go without viewingthem?</p><p>2.20 report use the same parameter but different set ofdata.</p><p>3. There are not similar report but have common parameteronly.</p>
Hello Vedant,
<li> Do you already have a report that will accept multiple invoice numbers as input and generate required "Invoice Report" for you?
<li> If Yes - Are you looking to generate URL based on user check-box selection? If so, please provide sample URL format which will accept multiple invoice numbers.
<li> If No - I think first you should create such report (I have limited knowledge on Oracle Reports though)
Regards,
Hari -
Fields missing while printing crystal reports !!
Hello everyone
I have a crystal report application in VB.NET 2005, which gets the values of a field from the database and supports printing of the report in the following formats
1. pdf
2. directly to a printer - printout
When i export the report using reportdocument to pdf , all the fields are getting printed : Normal - As expected
But when i print the report directly using PrintToPrinter method,i am not able to print some of the fields. i.e some of the entries are missing in that report printout
Can someone guess what could be the problem ???
Are there any limitations / preconfigurations that needs to be done apart from setting page size,margin before using the PrintToPrinter method
Regards
SrivatsaOK, a few incongruencies here:
I'm using the version of the Crystal Reports that ships along with the Visual Studio.NET 2005.
- that would make is CR 10.2
We have also tried applying the latest service packs crxir2_sp4_full_build
- So SP 4 for CR XI release 2 would not do you much good as per above (if you are indeed using CR 10.2(?))
- How did you get to the crxir2_sp4_full_build? This is in a gated section of the SAP website. The only publically available SP 4 for CR XI r2 is "incremental... If you did apply crxir2_sp4_full_build, then you are working with CR XI r2 now...
The behavior is seen in the web application and the behavior is seen both in the dev and deployment system.
- So this does not work anywhere? If so, why bother going to deployment?
Also i tried exporting to pdf soon before / after printing. But the fields are present in the pdf and not on the printouts
- Confirm that you do see the fields on an exported PDF and when you print the PDF you get a blank printout?
More clarification needed:
We need to be absolutely clear on what version of Crystal Reports you are using. Open your .NET project, go to your references and look for CrystalDecisions.Crystalreports.Engine.dll. What version is this assembly?
Also, please answer the rest of the questions above.
Ludek -
Printer: HP Photosmart 5515 on the label (but HP Photosmart 5510d B111h on the Printer Status Report).
Operating system: Win 7
Why does item 25 in my Printer Status Report show incorrect "Ink Install" dates? Depending on the colour, the date of installation of each ink cartridge is given as four or five days earlier than the actual date of replacement. I would have thought that the date would be exactly as per my desktop computer to which the printer is connected via a USB cable.
The printer is less than one year old and has given the incorrect dates from the moment the original set-up cartridges were replaced.HI LincsP,
You are correct that the dates should in fact change and show the exact dates. This will not affect your ability to print or print quality at all. It may have something to do with you needing a product update. You can click here to find out how to check for a product update on your printer.
When it's time to change a cartridge next time print the Status report before you replace it and then again right after you replace it. If the same thing happens please scan the sheets and attach them to this thread for me to look at.
Let us know what happens.
If I helped you at all it would be great if you clicked the blue kudos star!
If I solved your post please mark it as solved to help others.
I'm a printer tech with HP. -
How to print a report in landscape mode?
Hello everybody,
I have a task where in i need to print a report in LANSCAPE format.
I have tried to print the report output but i could not found an option to set LANDSCAPE mode and also how to change the font size.
Can anybody suggest me the approach?
Helpful answers will surely be rewarded.
Thanks in advance.
Sanghamitra.Hi
If you are using the command MEW-PAGE PRINT ON
then we can give this layout options
like
NEW-PAGE PRINT ON
DESTINATION <printer name>
immediately 'X'
KEEP IN SPOOL 'X'
LAYOUT 'X_65_132' (OR X_65_255)
RECEIVER SY-UNAME
NO-DISPLAY.
OTHERWISE WHEN YOU SELECT THE PRINTER
IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
you will have this facility to select LANGSCAPE/PORTRAIT
use that and print
Reward points for useful Answers
Regards
Anji -
Maybe this is not the appropriate section.. My problem is that I'm trying to realize a desktop application connected to a database, which should be able to manage data by GUIs and print report if it's necessary. For the first part everything's ok, but I've a few question about the second.. watching around I found some examples of classes that implement Printable which can be the answer of my question, but..
- is possible to create a report with a Printable class and then save it into a .pdf? and/or other formats?
Anyway, am I right in this or did I try something wrong?You can create a PDF file using the [itext |http://www.lowagie.com/iText/] library
you can create reports using jasperreports
you can print the reports and save them as PDF,EXCEL ,HTML and more...
(jasperreports is using the [itext |http://www.lowagie.com/iText/] library )
you can edit your reports using ireport
hope that helps
Maybe you are looking for
-
Is there an application or a setting that one can use to either convert the windows media format files to that playable on Apple products i.e. mp3.
-
TitledBorder Text is Truncated
Hello all, This must be a common problem. Here's a simple version of the problem: I have a JPanel using a FlowLayout. Within the JPanel I have a JLabel whose text is a single character in length. When I place a TitledBorder around the JPanel, the bor
-
i have a text file of record some thing like last name first name email how can i make it read the text file column by column i created a class with linkedlist to put it in but can't make it recognize which is which (code) public void NewTail( String
-
How can I make the earphone inserter work?
When I plug my earphones into my ipod, sound only comes out faintly in the earphones and this is not due to the earphones. It is due to my ipod. What can I do to fix this?
-
Hi everyone, I would like to see if anyone can clear a confusion I have on supported platforms for the BO4.x roadmap. I know strictly from a 4.0 release perspective that it only currently (stating this loosely) supports Windows/AIX/Linux. Would futur