Text item print in report???
Hi all
I have a problem in Report 6i
I created a report there is many field and text item
there is any possibility that if any field is empty related text item not print just like field.
suppose:
Text item data
Name........:- abc
Father Name.:-
any possibility if field father name empty, text "Father Name.:-" doesnt print in report.
Duplicate of the thread :
text item print in report???
Similar Messages
-
Meaning fails to generate correct code for text item in designer reports
I have a text item in a report which is a table column governed by a domain. When the display type is set to TEXT and the Show Meaning property is set to MEANING ONLY - the code generation fails as follows:
WHERE NTC.ICO_ID = L_ICO.ID AND
L_ICO.ISS_CAT_CODE = L_ISS.CAT_CODE AND
L_ICO.ISS_LEGI_CODE = L_ISS.LEGI_CODE AND
NTC.DEM_ID = L_DEM.ID
CG.RV_DOMAIN = 'NOTICE TYPE' AND CG.RV_LOW_VALUE = NTC.NOTICE_TYPE
The failure is caused because the AND is omitted from the last condition in the query. (the part that gets the meaning from cg_ref_codes).
Can anyone advise on a solution to this?Sander,
Your concerns about renaming the new release 4 libraries to ofg*65.pll are understandable, but it is exactly what you have to do. The only customizations we made to the ofg* libraries in Headstart 6i are workarounds for Designer bugs that were present when we wrote Headstart 6i (at that time we used Designer release 2). These bugs have been fixed by now, so it is safe to use the Release 4 versions and get rid of the ones that shipped with Headstart 6i.
We recommend still renaming them to ofg*65.pll, for an explanation see the Headstart User guide or the Headstart Installation Guide.
Kind regards,
Peter
null -
Header text in Print inspection report
Dear gurus
I wish to enter the header text in u201CPrint inspection reportu201D after complition of the result (like Name of the client)
What settings I have to do?
Kindly help
MK
Happy New Year and fruitful postings to all SDN Family members!!
MKHi
I this can be achieved by the ,
make a copy of QM_INSP_RESULT : Form .std sap uses this form In program RQGAAM31.
You can customzed your own form and attach here.take help of ABAPER
Regards
Sujit -
I need to print report's name as a part of header information.
What I have to do?Hi,
Why don't you just hard code it as a text item in your report header??
Regards -
Insert hyperlink into Text Item
I'm looking to create a footer text item for all reports that has a link that will launch an email to the BI team. I was able to find some javascript that I can use to launch Outlook but I can only get it to work with a button item or link item. I can't seem to figure out how to insert it into a Text Item.
What I want is:
"If you have any question please contact BI Team"
where BI Team is the link.
Thanks.Hi,
i hope you want this functionality in WAD report. have u tried "HREF" in HTML code of WAD for that link.
for example: you want to open the link on clicking on "BI Team" so write a code in WAD like this
"If you have any question please contact <a href="http://mail.google.com/" target="_blank" >BI team</a>
Hope this will solve you query
Thanks,
Om Ambulker -
How to print sequence number for a text item in a oracle reports
Hi
I have text item which repets for every round,if i have 3 or 4 rounds i should number the text item as 1,2,3,4 etc.... in a report.
Can anybody help me
Thanks in advanceHi Bob
Thank you for your reply.
Here is the data for example:
Jobxxxx
Round
assembly for 3d $200 1 $200.00
proof for 3d $10 3 $30.00
Round
plate for 3d $200 1 $200.00
image for 3d $10 3 $30.00
Job yyyy
Round
assembly for 3d $100 1 $100.00
proof for 3d $50 3 $150.00
So Bob everything is comming from tables except round.
My question is how to add sequence number to round adn the result should be like this:
Jobxxxx
Round 1
assembly for 3d $200 1 $200.00
proof for 3d $10 3 $30.00
Round 2
plate for 3d $200 1 $200.00
image for 3d $10 3 $30.00
Job yyyy
Round 1
assembly for 3d $100 1 $100.00
proof for 3d $50 3 $150.00
Thank you in advance -
Hi Experts,
I am putting some text in the text tab of the Purchase order Transaction ME21N. When I am taking Script for that Purchase order that text is coming in the printing.But my problem is that same text I captured into Reports.Suppose if I wrote the report that Text also need to come in the report.
Please suggest me how to do..
Thanks in Advance.
Thanks and Regards
Srihari..Hi...
For this u can use READ TEXT Function module...
U just need to pass Object Id,
Name,
Language etc details....and this function module fetches the text...
But if the Text is not maintaine it will give u an ERROR saying text is not maintained....
Edited by: Dhananjay Patil on Jan 23, 2008 7:12 AM -
Report - Formatting text IN text items
I'm trying to create a report with (at the end of the report) a text field extracted from the (Oracle) database.
A user creates the value of the field, with a sort of HTML formatting on the text (to make text in BOLD is used <B> and </B>, for ITALIC <I> and </I> and to UNDERLINE...).
If I generate the report in HTML format everything is OK, but in PDF format I've got the tags written with the text.
This mean that instead of having:
"Hello World"
I've got
"Hello <B>World</B>"
Is there a way to let Oracle Report display a text item with some words in BOLD (ITALIC, etc) and some others not?
I've tryed the "Contains HTML Tag" without any result, I'm currently using 6i, but I can switch to 9i.
Any help or suggestion is greatly appreciated.
ThanksStephen Schulte2 wrote:
Sagesse wrote:
To quote text, put "> " (without quotes) in front of the text you want indented.
OK I used the ' " ' to put your message into a box at the start of mine, but I don't seem to be able to use the ">" to "indent" my text... For example-- the following is not indented: >So now I am putting this text here in quotes, let's see via PREVIEW.
No, that doesn't seem to do anything...
Steve
You have to put the > character at the beginning of a line.
Alternatively, you can use this HTML to set off text as a blockquote without the background:
<blockquote style="margin-left: 50px;">Quoted text goes here</blockquote>
Which will render your text like this:
Quoted text goes here
You can add your own background color like this:
<blockquote style="background:lightblue; border:1px solid black; padding:3px; margin-left: 50px;">Quoted text goes here</blockquote>
Where 'lightblue' can be replaced with any CSS or HTML color name.
This will render your text like this:
Quoted text goes here -
Print Web report and don't print text but print frames
Hello , I am running a report by web browser, everything is ok and I can see that, now I want to print it so I put DESTYPE = printer and DESNAME =\\machine\printer then, when I print the report there is no mistakes but I dont know why I get a page without any character .. The frames print ok! all print ok but not the text, I test using diferent colors for the text but nothing .. could you help me please? this is really strange :( there is no message of error.
Also I for got .. This is the configuration :
Oracle IAS Release 1
Oracle8i Enterprise Edition Release 8.1.7.2.0 - 64bit Production
Windows 2000 Server
Report Builder 6.0.8.11.3
The printer is HP LaserJet 8000 Series PS
8000 Series PS-172.20.6.100
I have a very simple report that works fine
for example if I put this link:
http://pelma1w2dws03/dev60cgi/rwcgi60.exe?hidden_run_parameters=np_sr_lov_choose_showrooms&destype=cache
I can see my report in web without any trouble
but when I try to print:
http://pelma1w2dws03/dev60cgi/rwcgi60.exe?
hidden_run_parameters=np_sr_lov_choose_showrooms&destype=printer&desname=\\PELMA1W2PCS04\PELMA1PIT0601
then I received a message of print succesfully but when I see the print
there is no text, it print images, frames, and there is an space where I expect the text but there is no text and no messages of error. -
Web printing crystal report hangs on report.PrintOptions.PrinterName
Hello,
I have a report web page that displays a crystal report. I have added a modal popup to allow them to select their printers. When I go to print the report is hangs on the line of rpt.PrintOptions.PrinterName = li.Text. The printer names are added to the list box using a Java applet.
Here is the Sub it is running.
Public Sub PrintReports()
rpt = CType(Session("rpt"), ReportDocument)
For Each li As ListItem In Me.lbPrinters.Items
If li.Selected AndAlso li.Text <> "" Then
rpt.PrintOptions.PrinterName = li.Text
rpt.PrintOptions.PrinterDuplex = CType(Me.cboDuplex.SelectedItem.Value, CrystalDecisions.Shared.PrinterDuplex)
rpt.PrintToPrinter(CInt(Me.txtNumOfCopies.Text), True, CInt(Me.txtPageStartRange.Text), CInt(Me.txtPageRangeEnd.Text))
End If
Next
Me.mpePrint.Hide()
End Sub
Any help would be greatly appreciated.
Thanks,
PatrickSounds like you're trying to implement server side printing in your app. Which is fine, except the CR ActiveX print is client side printing. Just in case you're interested, the way to enable activeX print is to go to the property of the CR viewer and find "PrintMode". It will more than likely be defaulted to PDF. Change that to ActiveX.
Now, back to the issue. This may still be a matter of permissions - essentially what Adam was after. Probably the easiest way to determine that is to use the [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] utility. Once you have the log, search it for "Access Denied" messages.
Ludek -
Print the report on page has width larger than height and not landscape mode
Hi,
I'm trying to print report on page (Width: 18cm, Height: 13cm) which the width larger than the height.
The problem is windows keeps changing the page oreintation to landscape and when I change it back to portrait its changing the width to 13cm and height to 18cm.
I'm using dot matrix printer to print the report, if i put Landscape , printer is printing the text in horizontal.
Already i have tried to setup the custom for on printer, and used custom page size but it is changing to landscape.
I need to print the report with out preview, direct print top printer, NO PDF....
Thank you .....Hi Anil,
After testing the issue in my environment, I can reproduce it. When I set (Width: 18cm, Height: 13cm) as the Report Page size, it would automatically convert Orientation from Portrait to Landscape. Because the Orientation displayed is dependent on the page
width and page height of the report.
But in my scenario, the Orientation option just change the Width and Height sizes, it couldn’t affect the text rotation. I guess this issue can be caused by the printer and printer driver, please try to update them. Reference:
http://stackoverflow.com/questions/15244336/printing-in-landscape-or-portrait-automatically-rotates-text-ssrs?lq=1
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Hello All,
I have a report page with some search item.When I print the page the title does not appear on the output page.
How I can print the report and its title on the output page.
any quick help pleaseHi Mohammad
I allow users to download reports using the Interactive Reports Region.
If you use that method then you can insert a title at the top of the report by populating the Report Region > Print Attributes (TAB) > Page Header
Note: This is available when using APEX coupled with Oracle Business Intelligence Publisher. It does not work with "CSV" output.
Kind regards
Simon Gadd -
Print a report in crystal Report using SDK
Hi Dear;
any body can publish a sample code how can i print a report built in crystal report using SDK?
regards;Hi Dany,
Hope the following code will help u .
before calling the function make a XML by using dataset.writexml, in which you have to pass the name of your stored procedure.
for this you have to decalre commantype as stored procedure.
first parameter of this is rpt name . asecon paramer is ur xml name which you got from DAtaset.writexml.
Sub ShowReport(ByVal rptName As String, ByVal SourceXML As String)
Try
Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDoc.Load(rptPath)
For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
oSubReport = rptObject
rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
End If
Next
Next
rptView.ReportSource = rptDoc
rptView.Show()
Dim oFrm As New System.Windows.Forms.Form
rptView.DisplayGroupTree = False
rptView.Dock = System.Windows.Forms.DockStyle.Fill
rptView.Location = New System.Drawing.Point(0, 0)
oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
oFrm.Controls.Add(rptView)
oFrm.Name = "rptForm"
oFrm.Text = "rptForm"
oFrm.ResumeLayout(False)
oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
oFrm.TopMost = True
oFrm.ShowDialog()
Catch ex As Exception
oApplication.MessageBox(ex.Message)
End Try
End Sub -
Print Message Report from Mobile
Hello...
We need modify standard mobile infrastructure java code...
We need print some report from Mobile Front-end.
Is possible to print all MESSAGE data that we can see from front-end of mobile infrastructure 2.5 ???
thank you very much
StefanoI haven't really done much enhancements on MAM 2.5, but Im sure sami will let you know where to add the code, or you can review the MAM enhancement guide on the CD.
In regards to printing the PIOS API is pretty simple. If you are using a laptop to print to a normal printer then you can just use the Win32 Drivers..(installed via driver addon from web sap console.)If you are using the handheld you will need to find the appropriate drivers.
Here is some code I used in one of my applications:
<i>Connector conn = Connector.getInstance();
DriverInfo[] driverInfo = conn.listDrivers(ConnectionType.PRINTER);
PrinterParameters params = new PrinterParameters(driverInfo[0]);
params.setPrinterMode(PrinterParameters.GRAPHIC_MODE);
GraphicPrinter gp = (GraphicPrinter) conn.open(params);
File myImage = new File("c:
smalllogo.bmp");
if (myImage.exists()) {
float x = 0;
float y = 50;
try {
String[] sFonts =
gp.getFontConfigurationManager().listFontNames();
PrinterFont pf = gp.getFont(sFonts[0]);
gp.drawText(
pf,
25,
25,
"TO For Delivery # = "
+ dbAccess.getItemFieldValue(arrayItems[0], "VBELN"),
GraphicPrinter.NO_ROTATION);
for (i = 0; i < arrayItems.length; i++) {
gp.drawText(
pf,
25,
y,
"Delivery Item # = "
+ dbAccess.getItemFieldValue(
arrayItems<i>,
"POSNR"),
GraphicPrinter.NO_ROTATION);
y = y + 10;
gp.drawText(
pf,
25,
y,
"Material # = "
+ dbAccess.getItemFieldValue(
arrayItems<i>,
"MATNR"),
GraphicPrinter.NO_ROTATION);
y = y + 10;
gp.drawText(
pf,
25,
y,
"Quantity to Pick = "
+ dbAccess.getItemFieldValue(
arrayItems<i>,
"LFIMG"),
GraphicPrinter.NO_ROTATION);
y = y + 25;
gp.doPrint(1);
gp.close();
} catch (Throwable tFile) {
tFile.printStackTrace();
}<i>
This should give you an idea, you should also read through the MDK documentation for the printer API (PIOS). Its quite easy to pick up and as long as you have the driver and connector installed it prints right away.(You could also use the Peripheral emulator in
NWDS to test the code first)
Hope this helps,
Wael..
Dont forget the rewards
Message was edited by: wael aoudi -
Print Crystal Report directly from C# without using Report Viewer
Hello All,
I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
Regards
using CrystalDecisions.CrystalReports.Engine;
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace csharp_win_printtoprinter
/// <summary>
/// Summary description for Form1
/// </summary>
public class Form1 : System.Windows.Forms.Form
//CR Variables
ReportDocument crReportDocument;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PrintDialog printDialog1;
private System.Windows.Forms.Button button2;
private System.Drawing.Printing.PrintDocument printDocument1;
private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
private CrystalReport1 CrystalReport11;
private Chart Chart1;
/// <summary>
/// Required designer variable
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
// Required for Windows Form Designer support
InitializeComponent();
// TODO: Add any constructor code after InitializeComponent call
/// <summary>
/// Clean up any resources being used
/// </summary>
protected override void Dispose( bool disposing )
if( disposing )
if (components != null)
components.Dispose();
base.Dispose( disposing );
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor
/// </summary>
private void InitializeComponent()
this.button1 = new System.Windows.Forms.Button();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.button2 = new System.Windows.Forms.Button();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
this.Chart1 = new csharp_win_printtoprinter.Chart();
this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
this.SuspendLayout();
// button1
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(32, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(160, 104);
this.button1.TabIndex = 0;
this.button1.Text = "Print Report No Choose Printer";
this.button1.Click += new System.EventHandler(this.button1_Click);
// button2
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(272, 56);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(160, 104);
this.button2.TabIndex = 1;
this.button2.Text = "Choose Printer";
this.button2.Click += new System.EventHandler(this.button2_Click);
// crystalReportViewer1
this.crystalReportViewer1.ActiveViewIndex = 0;
this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
this.crystalReportViewer1.Name = "crystalReportViewer1";
this.crystalReportViewer1.ReportSource = this.CrystalReport11;
this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
this.crystalReportViewer1.TabIndex = 2;
// Form1
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(1164, 505);
this.Controls.Add(this.crystalReportViewer1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
#endregion
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
static void Main()
Application.Run(new Form1());
private void button1_Click(object sender, System.EventArgs e)
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new CrystalReport2();
//Use error handling in case an error occurs
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(0 ,true , 1, 1);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString(), "Unexpected exception");
private void Form1_Load(object sender, System.EventArgs e)
private void button2_Click(object sender, System.EventArgs e)
//Open the PrintDialog
this.printDialog1.Document = this.printDocument1;
DialogResult dr = this.printDialog1.ShowDialog();
if(dr == DialogResult.OK)
//Get the Copy times
int nCopy = this.printDocument1.PrinterSettings.Copies;
//Get the number of Start Page
int sPage = this.printDocument1.PrinterSettings.FromPage;
//Get the number of End Page
int ePage = this.printDocument1.PrinterSettings.ToPage;
string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new Chart();
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
crReportDocument.PrintOptions.PrinterName = PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString());1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
Visual C#
2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
SAP Community Network
La vida loca
Maybe you are looking for
-
IPhone 4S stuck in recovery mode after update attempt.
Hey everyone, I recently tried to update my phone to ios 7.1. I was just about finished when iTunes told me that it was out of date and needed to be updated. I updated it, but it put my phone into a recovery loop that I can't get out of. The phone
-
Alright guys I got a book on java and I'm trying to learn but things aren't going too great. My first problem is the path. I understand that i need to change something under Environmental Variables but I do not understand if I need to make changes to
-
Monitor for photography.
Hi, bought a mac pro today and 20 inch cinema widescreen display today! I am going to be using this mainly for artwork and photo processing.... i was originally not going to get a screen today but was told in the shop that my rights entitle me to 14
-
Simple nav buttons not displaying correctly
When I add content to the page that expands the table, the nav buttons on the left "spread out". This isn't happening in Safari. Any help would be much appreciated. Here is the page I'm working on: http://www.csayersdesign.com/achieveIT/pages/company
-
Business place and section code
Hi SAP experts, With respect to India customization relating to section code and business place, i understand that business place is with respect to VAT regn and section code is with respect to TAN number held by a company. But do we need to create a