How to Print a View...

Hi
I just want to take a print out of my view and i know that in previous version we could write the following code on View's Button: WDPrintService.getPrintService().print(wdControllerAPI);
but don't know in CE 7.1.
Thanks...

Thats right. You may also want to have alook at the print options in portal and VC:
http://help.sap.com/saphelp_nwce711/helpdata/EN/46/77d4df88115808e10000000a114a6b/frameset.htm
http://help.sap.com/saphelp_nwce711/helpdata/EN/b0/0c1e4e966e44429acb627183c41e4c/frameset.htm

Similar Messages

  • How to print list view of Finder window

    I want to print a list of the contents of a disk or a folder, just as I see it in the Finder's list view. How is this done in Tiger? In some older versions of the OS there was a menu command for this operation, something called Print Directory, I think.

    There may be more user-friendly ways of doing this, but here's one way:
    Open Terminal (in the Utilities folder).
    Use "cd" to change directory to the folder you want to print
    eg cd /Users/myuser/Documents
    Use "ls" to list the contents to a file
    ls -al > filelist.txt
    You can then open the filelist.txt file from Finder in TextEdit and print it.
    Matt

  • How to print monthly view in ical

    I have the most current version of ical.  It wont let us print a monthly view.  It only lets us select fro day or list.  I am sure i am doing someething wrong, but I dont know what.  Running MAC OS X 10.5.8. 
    Ical version 3.0.8. 

    earlnkids,
    The text size selection should be available in the first page of the iCal print options:

  • Printing a view

    hi
    How to print a view in NW 2004s? Please provide me steps and code for the same.
    Regards,
    Arun Srinivasan

    Hi,
    see the thread
    Print in WebDynpro
    Print in WebDynpro
    Print Function in webDynpro
    <b>Valuable answer=points</b>
    Kind Regards,
    S.Saravanan.

  • How to print from a planning view in APO SNP ?

    Does anybody know how to print on paper from the planning view in the planning book.
    I have made a view with a key figure.
    In the view, I can see the productnumber, the key figure and the values.
    Some users want to print it on paper.

    Hi,
    CSV method of download is the SAP standard format for saving the
    files.
    You can either create your own custom logic for saving in excel or
    use BW functionality for extracting the required fields and form a
    report to save & print in excel
    Regards
    R. Senthil Mareeswaran.

  • How to print the report directly without previewing (report viewer) using c# windows application

    Hi,
    Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
    can fill this problem.
    To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
    csCashInvoiceCal csCashCal; --Crystal report name .rpt
    dsCsReceipt dsCs; --created dataset
    DataTable u;
    DataRow s;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private System.Windows.Forms.PrintDialog printDialog1;
    ParameterValues paramValue;
    ParameterDiscreteValue discreteValue;
    ParameterFieldDefinition fieldDefinition;
    private void btnPrint_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt2();
    print2();
    csCashCal.Close();
    this.Cursor = Cursors.Default;
    private void loadReceipt2()
    dsCs = new dsCsReceipt(); --created dataset
    u = dsCs.Tables.Add("DtCsReceipt");
    u.Columns.Add("Qty", Type.GetType("System.String"));
    u.Columns.Add("UOM", Type.GetType("System.String"));
    u.Columns.Add("Description", Type.GetType("System.String"));
    u.Columns.Add("UnitPrice", Type.GetType("System.String"));
    u.Columns.Add("Discount", Type.GetType("System.String"));
    u.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
    s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    s["Discount"] = "";
    s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    u.Rows.Add(s);
    catch (Exception) { }
    csCashCal = new csCashInvoiceCal();
    csCashCal.SetDataSource(dsCs.Tables[1]);
    //csCashCal.Refresh();
    loadParameter2();
    private void loadParameter2()
    ParameterFieldDefinitions paramFieldDefinitions;
    paramValue = new ParameterValues();
    discreteValue = new ParameterDiscreteValue();
    paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
    discreteValue.Value = date;
    fieldDefinition = paramFieldDefinitions["Date"];
    commonParam();
    discreteValue.Value = txtcsno.Text;
    fieldDefinition = paramFieldDefinitions["InvoiceNo"];
    commonParam();
    discreteValue.Value = txtNameTo.Text;
    fieldDefinition = paramFieldDefinitions["CustomerName"];
    commonParam();
    discreteValue.Value = txtAdd.Text;
    fieldDefinition = paramFieldDefinitions["CustomerAddress"];
    commonParam();
    ------other parameters----
    private void commonParam()
    paramValue.Clear();
    paramValue.Add(discreteValue);
    fieldDefinition.ApplyCurrentValues(paramValue);
    private void print2()
    using (printDocument1 = new System.Drawing.Printing.PrintDocument())
    using (this.printDialog1 = new PrintDialog())
    //this.printDialog1.UseEXDialog = true;
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if (dr == DialogResult.OK)
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    try
    csCashCal.PrintOptions.PrinterName = PrinterName;
    csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
    printcount++;
    //saveCountPrint();
    catch (Exception err)
    MessageBox.Show(err.ToString());
    This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
    But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
    with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
    So here is my code so far which I don't know what's next:
    private void button2_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt3();
    //print3();
    this.Cursor = Cursors.Default;
    ReportParameter[] parameter = new ReportParameter[11];
    private void loadParameter3()
    parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
    parameter[1] = new ReportParameter("Date", date);
    parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
    parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
    parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
    parameter[5] = new ReportParameter("Agent", agent);
    parameter[6] = new ReportParameter("Discount", "Discount: ");
    parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
    parameter[8] = new ReportParameter("TotalSales", rdtotal);
    parameter[9] = new ReportParameter("Tax", rdtax);
    parameter[10] = new ReportParameter("TotalAmount", rdnet);
    private void loadReceipt3()
    DataSet dsrs = new DataSet();
    DataTable dtrs = new DataTable();
    DataRow drs;
    dtrs.Columns.Add("Qty", Type.GetType("System.String"));
    dtrs.Columns.Add("UOM", Type.GetType("System.String"));
    dtrs.Columns.Add("Description", Type.GetType("System.String"));
    dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
    dtrs.Columns.Add("Discount", Type.GetType("System.String"));
    dtrs.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    drs = dtrs.NewRow();
    drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    drs["Discount"] = "";
    drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    dtrs.Rows.Add(s);
    catch (Exception) { }
    int addtlRow = 7;
    if (addtlRow > (count - 1))
    addtlRow = addtlRow - (count - 1);
    for (int i = 0; i < addtlRow; i++)
    dtrs.Rows.Add();
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    localreport.Refresh();
    //what's next....
    So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
    Anyway I'm using VS 2010 with sql server 2012 express.
    You're help will be greatly appreciated.
    Thank you,
    Hardz

    After some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
    with my code above and helps solve my question.
    Here's the continuation of the code above:
    private void loadReceipt3()
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    Export(localreport);
    print4();
    private IList<Stream> m_streams;
    private int m_currentPageIndex;
    private void Export(LocalReport report)
    string deviceInfo =
    @"<DeviceInfo>
    <OutputFormat>EMF</OutputFormat>
    <PageWidth>8.5in</PageWidth>
    <PageHeight>11in</PageHeight>
    <MarginTop>0.25in</MarginTop>
    <MarginLeft>0.25in</MarginLeft>
    <MarginRight>0.25in</MarginRight>
    <MarginBottom>0.25in</MarginBottom>
    </DeviceInfo>";
    Warning[] warnings;
    m_streams = new List<Stream>();
    report.Render("Image", deviceInfo, CreateStream,
    out warnings);
    foreach (Stream stream in m_streams)
    stream.Position = 0;
    private void print4()
    if (m_streams == null || m_streams.Count == 0)
    throw new Exception("Error: no stream to print.");
    PrintDocument printDoc = new PrintDocument();
    PrintDialog printDlg = new PrintDialog();
    printDlg.Document = printDoc;
    DialogResult dr = printDlg.ShowDialog();
    if (dr == DialogResult.OK)
    if (!printDoc.PrinterSettings.IsValid)
    throw new Exception("Error: cannot find the default printer.");
    else
    printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
    m_currentPageIndex = 0;
    printDoc.Print();
    Dispose();
    public void Dispose()
    if (m_streams != null)
    foreach (Stream stream in m_streams)
    stream.Close();
    m_streams = null;
    private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
    Stream stream = new FileStream(name + "." + fileNameExtension,
    FileMode.Create);
    m_streams.Add(stream);
    return stream;
    private void PrintPage(object sender, PrintPageEventArgs ev)
    Metafile pageImage = new
    Metafile(m_streams[m_currentPageIndex]);
    // Adjust rectangular area with printer margins.
    Rectangle adjustedRect = new Rectangle(
    ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
    ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
    ev.PageBounds.Width,
    ev.PageBounds.Height);
    // Draw a white background for the report
    ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
    // Draw the report content
    ev.Graphics.DrawImage(pageImage, adjustedRect);
    // Prepare for the next page. Make sure we haven't hit the end.
    m_currentPageIndex++;
    ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
    Thank you very much for this wonderful tutorial. :)

  • How to Print the whole view content from a button on the View Layout

    Dear All,
    Good Morning All
    I am New to WebDynPro.Solution needed Urgently
    How to take print whole view content(lay out) in
    webdynpro application.i.e whatever it may be tablecontent or label or inputfield .
    Could you send the coded part briefly step by step from the beginning itself i.e
    i put the button in the view lay out below the printed parts(label or inputfield) name like show preview .
    Now my Question is what should i write in show preview function to take the print in label fields in the webdynpro view lay out
    B'cos i am new to webdynpro.Help me
    Thx in advance
    Regards
    Dhinakar

    Web Dynpro by default does not provide the option of printing the view content.
    However still you have a round about way of doing it. Create the an html page similar to the Web Dynpro page. Store the code into a String variable.
    String html="<html> ....<scripts>window.print()</scripts></html>";
    bytes[] source=html.getBytes();
    try{
    byte[] b=new byte[1];
    IWDCachedWebResource res=WDWebResource.getWebResource(b,WDWebResourceType.HTML);
    String url=res.getURL();
    }catch (WDURLException e) {
              // TODO: handle exception
    Now open the url in a new window and that would print the content of the html page.
    Regards,
    Noufal

  • How to Print the whole view content  from a button on the view

    Dear All,
    Good Morning All
    I am New to WebDynPro.Solution  needed Urgently
    How to take print whole view content(lay out) in
    webdynpro application.i.e whatever it may be tablecontent or label or inputfield .
    Could you  send the coded part briefly  step by step from the beginning itself i.e
    i put the button in the view lay out below the printed parts(label or inputfield) name like show preview .
    Now my Question is what should i write in show preview function to take the print in label fields in the webdynpro view lay out
    B'cos i am new to webdynpro.Help me
    Thx in advance
    Regards
    Dhinakar

    Web Dynpro by default does not provide the option of printing the view content.
    However still you have a round about way of doing it. Create the an html page similar to the Web Dynpro page. Store the code into a String variable.
    String html="<html> ....<scripts>window.print()</scripts></html>";
    bytes[] source=html.getBytes();
    try{
    byte[] b=new byte[1];
    IWDCachedWebResource res=WDWebResource.getWebResource(b,WDWebResourceType.HTML);
    String url=res.getURL();
    }catch (WDURLException e) {
              // TODO: handle exception
    Now open the url in a new window and that would print the content of the html page.
    Regards,
    Noufal

  • How to print WDA component view?

    Hello Experts,
    I need to print a view of a WD Component view.
    Can you please suggest any ways of doing the same.
    Below attached is the view screenshot which is needed to printed.
    The requirement is to have an additional button on the component itself, which will popup a window which would contain a PDF format of the view and some additional info regarding the same.
    Please suggest some way to tackle this.
    Thanks in advance.
    Regards,
    Sanket.

    Hi Sanket,
    Yes, you display that particular page in a pop up window.
    Create a button "Print" in pop up window and on action, go ahead with either of below option
    Option 1: print whole page using print application option ( here no need of designing it, it just prints visible area of current page, note it also prints buttons as well )
    Logic:
    data:
    l_api_componentcontroller type ref to if_wd_component,
    l_appl type ref to if_wd_application.
      l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
    l_appl = l_api_componentcontroller->get_application( ).
    l_appl->print_page( ).
    Option 2: Design adobe form and call the adobe form on action of PRINT button
    Regards,
    Rama

  • How to print Spool requests for cheque printing sequentially

    Dear All,
    I am making vendor payments and printing cheques using F-58. It automatically creates a spool requests at the end of the transaction. When i complete all my payments and go to SP01 for viewing spool requests, the last request appears at the top of the list.
    If i select 3 consecutive requests and print them at a time, the last request gets printed first on the first cheque number and the first request gets printed on the last cheque number.
    This results in anomaly in the cheque number assigned in the system and the printed cheque as the last payment is printed on the first cheque.
    I am using dot matrix printer with  page format fixed for cheque specifications. The cheques are printed properly as per the format except the order of printing.
    Kindly let me know how to print multiple requests sequentially from the spool requests list such that the spool request number printed matches with the serial cheque numbers.
    Regards,
    SAP_2009

    Hi,
    I understod your issue.
    Whenever you posted multiple payment documents, and after that if you want to take cheque printouts sequentially by using more spool requests.........there is a way to sort out this issue.
    1) Select all of your spool requests and click on Sort in ascending Order (CtrlShiftF5) and click on Print directly (CtrlShiftF8). By doing this you will get the cheque printouts sequentially according to your payment document sequence.
    Hope this will help you
    Assign ********, if it solved your problem.
    Thanks,
    Srinu

  • How to print envelopes on the HP OfificeJet Pro 8600,

    Hi there folks; 
    Recently I ran into several folks asking on how to print envelopes in the same printer The HP Officejet 8600
    Do to this I decided to provide both the instructions in this document as well as the links of the article where I refer to for the information. This way folks that want to have it quick and to the point can accomplish this by reading and following this article and any folk that want to dig deeper perhaps the article will provide more in depth information
    This is how to load the envelopes;
    I will provide the link of the Article where this information have been gathered from;
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02890475&cc=us&dlc=en&lc=en&product=4323648&tmp...
    Here the steps for loading the envelopes on the Officejet pro 8600.
    Grasp the handle on the front of the input tray, and then pull the tray towards you to open it.
    Figure 12: Pull out the input tray
    Slide the paper width guides out as far as possible.
    NOTE:If you are loading larger-sized paper, pull out the tray extension to lengthen the tray.
    Figure 13: Input tray extension
    Insert the envelopes into the center of the tray with the envelope flap on the left and facing up. If the flap is on the short end of the envelope, insert the envelope into the center of the tray with the flap toward the product and facing up.
    Figure 14: Load envelopes
    Slide the paper width guides in to rest against the edges of the envelope. Make sure that the envelope is centered in the tray.
    Push the tray into the product until it clicks into place.
    Figure 15: Push in the input tray
    Pull out the tray extender on the output tray.
    Figure 16: Pull out the tray extender
    This is the explanation on how to load envelopes into the 8600. Hope is helpful
    Now let’s make sure that the envelopes use are supported by the printer,
    This article will also provide you with envelopes support by this printers;
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02858465&cc=us&dlc=en&lc=en&product=4323648&tmp...
    Is an important to properly load the envelopes as to use only envelopes supported by the printer.
    you might spend countless hours trying to figure what is the problem without realizing that the issue is  the  envelope you are actually using is not supported.
    Here is a list of the envelopes supported by the Officejet 8600
    Paper type
    Paper size
    U.S. 10 envelope
    105 x 241 mm (4.1 x 9.5 inches)
    A2 envelope
    111 x 146 mm (4.4 x 5.8 inches)
    DL envelope
    110 x 220 mm (4.3 x 8.7 inches)
    C5 envelope
    162 x 229 mm ( 6.4 x 9.0 inches)
    C6 envelope
    114 x 162 mm (4.5 x 6.4 inches)
    Monarch envelope
    98 x 191 mm (3.9 x 7.5 inches)
    Card envelope
    111 x 152 mm (4.4 x 6.0 inches)
    Chou #3 envelope
    120 x 235 mm (4.7 x 9.3 inches)
    Chou #4 envelope
    90 x 205 mm (3.5 x 8.1 inches)
    Hope this is helpful.  
    I welcome any comments and questions;
    RobertoR 

    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!
    This question was solved.
    View Solution.

    On my OJ Pro 8600, When I go to print a # 10 envelope, it feeds the envelope through and then prints the address on a letter page.  I was forced to set the printer preferences to #10 envelope, and within Word, set the paper type to # 10 envelope, set Word up for center feed, and then put everything back to print normally.  ON my 6500 all I had to do was hit print.  There must be a way to print single envelopes without jumping through all these hoops!!

  • How to print uspto patent images using Safari and Quicktime

    3/18/06
    Do you want to know how to print US patent images using Safari? Read on.
    When you access the "images" link of a specific patent on the www.uspto.gov/ website using Safari, the page you are viewing is only one small upper left tile of a huge patent image that is not sized to the screen. You can scroll and try to read the page but it's almost impossible. Try to print it out and you only print what's on the screen. Bummer.
    The fix:
    Place the cursor on the opened image (it may appear blank), hold down the CONTROL key on you keyboard and click on the image. Two instructions come up. Click on the "Save Image to the Desktop" instruction and a DImg.tiff file will be created on your desktop. Click on the .tiff file and it should open in the Preview program, then simply print out the image. Voila!!!!
    Click the yellow arrow in the left margin to access page 2 of the patent and repeat the previous instructions to create another .tiff file on your destop. Do every page and you'll have the patent available to print out one page at a time.
    You can then rename the files and create a folder for that specific patent so you can access it later without signing onto uspto site.
    It's odd that the ever compatible Apple does not provide seamless compatibility to view and print patent images on the US Patent and Trademark Office's website. Where would they be without protecting their own intellectal property? Let's hope the next version of Quicktime includes the appropriate ITU T.6 or CCITT Group 4 (G4) compression language.
    Even the "throw it out the Windows" operating system is up to speed on this issue for America's hard working inventors.
    Keep on inventing.
    Tommy K
    imac 400 DV   Mac OS X (10.3.9)   Cube 450
    imac 400 DV   Mac OS X (10.3.9)   Cube 450

    Another similar thread on this issue...
    http://discussions.apple.com/thread.jspa?messageID=1602391

  • How to print a series of index photos billfold sized photos

    I would like to know how to print index sized photos as well as a series of wallet size photos (all of different subjects) on teh photosmart 7520 all in one....there has to be a way to do it.  
    This question was solved.
    View Solution.

    Thanks, Banhien.
    Sharon, here's a link to the multi-up prints templates, which put multiple photos on a page:
    Learn More: Multi-up Prints
    For more options, try the collage print projects. Both are in the Prints menu.
    Hope this helps,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • How to print "selected objects" in InDesign CS4?

    I have a large calendar in ID CS4. I want to print and view some of the text in its actual size. My printer can only print A4 documents. How can I print only selected texts and objects in its actual size in this application?
    Although copying and pasting the text in another A4 sized document (IDCS4) would do it but there is no native support of "printing selection" but Microsoft's "Word' has!

    I think the layer option is best.
    Select what you want then open the layers panel and create a new layer. Select the objects you want to print, then in the layers panel you will see a small square to the right of the layer name. Alt Drag that to the new layer to copy the items, you can then turn off the visibility to the other layer and just print out the new layer.
    Then switch the visibility of the layers around to view the original artwork.

  • How to print the components in scrollpane

    hi there,
    can anyone tell me how to print the scrollpane components, i mean the headers & the main view of the component. i've a scrollpane with the following code and i want to print the components:
    JScrollPane pane = new JScrollPane(aTextPane);
    pane.setRowHeaderView(aLineNumberComponent);my requirement is i've a editor & lineno component as textpanes and added to scrollpane & when asked to print it should print the lineno component which resides in scrollpane's row header & the editor textpane which is the main view in the scrollpane. how can i achieve this?
    i'd would appreciate any suggestions & codes given.
    thanx in advance.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

Maybe you are looking for