Print  Report automatically without dialog

Hi,
I have requirement to print output of report from another program automatically. Below is mycode.My problem is that it is displaying Print dialog although I have set No dialog as X in GET_PRINT_PARAMETERS.Am I doing something wrong ?
Any help appericiated.
              CALL FUNCTION 'GET_PRINT_PARAMETERS'
               EXPORTING
                 DESTINATION                    = USR01-SPLD
                 IMMEDIATELY                    = 'X'
                 LAYOUT                         = iv_paart
                 LINE_COUNT                     = iv_linct
                 LINE_SIZE                      = iv_linsz
                 NO_DIALOG                      = 'X'
               IMPORTING
                 OUT_ARCHIVE_PARAMETERS         = gs_arc_par
                 OUT_PARAMETERS                 = gs_pri_par
                 VALID                          = gv_valid
                VALID_FOR_SPOOL_CREATION       =
               EXCEPTIONS
                 ARCHIVE_INFO_NOT_FOUND         = 1
                 INVALID_PRINT_PARAMS           = 2
                 INVALID_ARCHIVE_PARAMS         = 3
                 OTHERS                         = 4
    SUBMIT Ztest WITH SELECTION-TABLE lt_param
                        TO SAP-SPOOL
                        SPOOL   PARAMETERS gs_pri_par
                        ARCHIVE PARAMETERS gs_arc_par
                        WITHOUT SPOOL DYNPRO
                        AND RETURN.
              IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
Thanks,
Reksap

Hi Bruno,
Thanks for replying.I copy your code also but it still display me dialog for printer. the dialog box is not for asking output device but printer.I couldn't paste screen here.Giving details below.
Printer :  name,status,type where,and Properties pushbutton
Print Range
Copies.
REPORT  ZPRINTTEST.
DATA:
      w_param      TYPE pri_params,
      w_arc_params TYPE arc_params,
      v_valid      TYPE c LENGTH 1.
DATA: t_param TYPE STANDARD TABLE OF rsparams.
FIELD-SYMBOLS: <f_param> LIKE LINE OF t_param.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
  EXPORTING
    curr_report     = 'ZPRINTTEST1'
  TABLES
    selection_table = t_param
  EXCEPTIONS
    OTHERS          = 1.
LOOP AT t_param ASSIGNING <f_param>.
  <f_param>-low = 'A'.
ENDLOOP.
WRITE: /001 'START'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    copies                 = 1
    destination            = 'FRON'
    immediately            = 'X'
    layout                 = 'X_65_255'
    line_count             = 10
    line_size              = 255
    no_dialog              = 'X'
  IMPORTING
    out_archive_parameters = w_arc_params
    out_parameters         = w_param
    valid                  = v_valid
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3
    OTHERS                 = 4.
IF sy-subrc <> 0.
*  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
SUBMIT ZPRINTTEST1 WITH SELECTION-TABLE t_param
TO SAP-SPOOL
SPOOL PARAMETERS w_param
ARCHIVE PARAMETERS w_arc_params
WITHOUT SPOOL DYNPRO
AND RETURN.
WRITE: /001 'END'.
REPORT  ZPRINTTEST1.
PARAMETERS: P_FIELD TYPE C.
write: /001 'Value Field:', p_field.
Thanks,
Reksap

Similar Messages

  • Print Report RDLC without preview ... very important for me.

    Hello, I want to ask you about print Report RDLC without preview .
    I saw this article here :
    http://msdn.microsoft.com/en-us/library/ms252091.aspx
    but I did not understand because the code is long and I think difficult.
    could you put simple code please?
    Thanks a lot.

    Would that fix this mod_jk problem? Do you mean to say that I have those permissions when I actually edit those files?
    I think the wiki is also mistaken assuming that JAVA_HOME is in the /opt directory.

  • MULTIPLE PRINTS FROM MB90 WITHOUT DIALOG BOX

    Hello Friends ,
    I am to take print of goods receipt voucher from MB90 .
    i have attached my smartform and program their its working fine , but i want to
    print of all the documents together not indididual , for that i have suppressed the dialog box but
    at a time time its giving only one print .
    kindly explain me with elaborated steps  .
    Regards
    Digvijay Rai

    Hello Friends ,
    I am to take print of goods receipt voucher from MB90 .
    i have attached my smartform and program their its working fine , but i want to
    print of all the documents together not indididual , for that i have suppressed the dialog box but
    at a time time its giving only one print .
    kindly explain me with elaborated steps .
    Regards
    Digvijay Rai
    Hello
    Are you taking the user´s printer?
    All the goods receipts are in a internal table? If so, you can do a loop in this internal table and call your smartform.
    Post here your solution, we can discuss about it
    Kleber Santos
    Edited by: Kleber Santos on Feb 1, 2009 5:32 AM

  • Fatal error at printing report

    When i add a table with records more than 500 rows to the report and print it to pdf with FreePdfXP, an Error-Dialog shew up with the note " Error: -2147352567 occurred at failed to open printer". After clicking on the button "Stop" an other dialog shew up with "Fatal Internal Error: "drawmgr.cpp", line 3504 LabVIEW Version 7.1". Then the complete Labview programme was shut down.
    When the number of the rows doesn't exceed 500, the printing report works without error. But by the second time of printing report the error shew up again when the total rows of records at first and second time of printing report are more than 500.
    Can anyone give me some suggestion,  thank you in advance.

    Sorry, i have just wanted to change the message subject. but i can't find the edit link.
    i guess, this problem would be due to the FreePdfXP-Driver or the Print Report.vi .

  • Auto-print report without cutting off results

    My requirement:
    - print a report automatically at the end of each UUT's test
    My problem:
    - The report prints, but
    -- some of the contents are cut off (especially long strings in indented tables)
    -- the page breaks sometimes cut tables in bad places
    So far I have found no way to automatically print the report in landscape mode, which would help greatly. But even better would be the ability to:
    - disable indenting tables
    - print tables in their entirety on one page
    - reformat strings so they fit, and/or control the width of the tables
    Any ideas?

    Are you using the NI example for auto-printing? That example converts the report to a temp html file and sends it to the default printer. If you're using that you could change settings for the default printer to be in landscape mode which would resolve your fundamental issue without having to write a ton of code to change table properties of the report.
    CTA, CLA, MTFBWY

  • Print report from client machine without showing in screen

    Hi guys!!
    I m using (forms10g+ 10gAS). I want to Print report from client machine without showing in the screen/monitor.
    Currently I m generating report in pdf format. From the pdf I m printing the document.
    But my requirements is to print directly to the printer without showing preview
    Thanks in advance
    Mokarem

    Maybe this will help:
    http://forums.oracle.com/forums/thread.jspa?messageID=1209371&#1209371
    Gary

  • 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. :)

  • Smart form printing without dialog box

    Hi,
    Thanks to eveyone for reading this post.
    I want to print a form thru smartform. I am able to do that now by calling that smart form and passing the data. Now i wanted to print multiple docs using smartform so that the dialog box printer doesnt apppear and all printing is executed without any user intervention.
    I tried to call smart form in the following way so that data is printed to the printer without any thing appearing on the screen (dialog box).
    I did consult the forums here and when i try it I either see the dialog box or see other sy-subrc.
    Code -
    Data: w_ctrlop TYPE ssfctrlop,
             w_compop TYPE ssfcompop.
    W_COMPOP-tdnewid   = 'X'.
    W_COMPOP-tdFINAL   = 'X'.
    W_COMPOP-tdimmed   = 'X'.
    W_COMPOP-tddelete  = 'X'.
    W_COMPOP-tdcopies  = 1 .
    *W_COMPOP-TDNOPREV  = 'X' .
    W_COMPOP-TDDEST    = 'LP01'.
    *W_COMPOP-tdnoprint = 'X'.
    W_ctrlop-DEVICE    = 'PRINTER'.    " Here we dont give printer name 'KX-P3696'.
    w_ctrlop-no_dialog = 'X'.
    w_ctrlop-preview   = ''.
    CALL FUNCTION '/1BCDWB/SF00000135'
    *CALL FUNCTION v_form_name
      EXPORTING
        control_parameters  =  w_ctrlop
        output_options      =  w_compop
        user_settings       = 'X'
      IMPORTING
        job_output_info    = w_return
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.
    i would be glad if anyone can help me. I did a few RND in the code above to make it work but it dosent.
    Moreover when the dialog box appears then there is a text in the bar below which says please maintain printer master data. (something like that). Is that creating a problem ?
    Thanks,
    JG

    REPORT  ZANNTEST.
    Data Declarations
    DATA : control TYPE ssfctrlop,"Smart Forms: Control structure
                output_options TYPE ssfcompop,"Smart Composer (transfer) options
                 v_fm TYPE rs38l_fnam."Form Name
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Function Module to get Generated Fucntion module of Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZCONEXTNLETTER'  " your created zform
    IMPORTING
       fm_name                  = v_fm
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION v_fm
      EXPORTING
       user_settings            = ' '                         " don't forget this option
       control_parameters       = control
       output_options           = output_options
        PR_PERNR                = '00001019'   " it wil come from ur form parameters
        PR_BEGDA                = '19940101'   " it will come from ut form parameters
    EXCEPTIONS
       FORMATTING_ERROR         = 1
       INTERNAL_ERROR           = 2
       SEND_ERROR               = 3
       USER_CANCELED            = 4
       OTHERS                   = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    this is the best answer for ur requirement..
    lets njyyyyyyyyyyy..

  • CrystalReportViewer export/print report without CSS styles

    Hello,
    I've faced with one issue in CrystalReportViewer control and couldn't solve it by my own efforts. Before I wanted post it exactly to this forum I've found that some people already faced with that problem too...but nobody didn't receive any answer, so I have a big hope that I'll receive it here.
    My problem is related to CrystalReportViewer control and especially to its styles. I have a test application which has just one aspx page which displays very simple test report (just 3 TextObjects, for test purposes) and each TextObject has its own style which stores in css file in my web site. So, CrystalReportViewer control displays report correct, but when I export/print this report to PDF or any other document all styles are lost.
    Could someone help me with this issue or maybe just point me what thing I missed or just tuned incorrect.
    Thanks in advance.
    Best regards,
    Sasha

    It's a pity that this control hasn't possibility to export/print report with its styles, because I think it is a very useful thing.
    Thank you very much Adam, for your short and clear answer.

  • Application Build Failure on Excel.Print Report call

    Developing software in LV2009 that uses Report Generation Toolkit to read/write from Excel templates. Program runs fine in development mode. AppBuilder crashes on *.exe build when adding NIReport.lvclassrint Report.vi
    Digging down, I find a broken run arrow on the NI_Excel.lvclassrint Report.vi as shown here:
    According to the Show Errors dialog, there is an unwired or bad terminal on the PrintOut invoke node; however I have not made any changes to this shipping VI (that I know of). I did try wiring all the unused inputs (empty strings to From, To, and PrToFileName; false booleans to Preview, PrintToFile, and Collate) after I ran into the error, but that had no luck either. Also tried inserting To Variant conversions for all input elements, just in case there was a problem in the implicit data to variant conversion.
    I have also tried a ctrl+shift+run compile of the whole application, but that doesn't seem to get it to un-break, either.
    Has anyone run into this problem before? It's weird that it would just break like that--I had actually compiled this particular executable before, using pretty much all the same Report Generation Toolkit VIs that I am using now. The only difference since the last build was that I replaced a Report.SaveAs function with a Report.Save function.
    Also of note: I have included all the Report classes in my project and build specification in order to compile the dependencies into support libraries to minimize the number of labview files included with the executable distribution. This is probably why an error with the Print Report.vi calls is crashing the AppBuilder even when I don't explicitly call that VI anywhere in my code.
    Solved!
    Go to Solution.

    Hey Guys,
      I know this post if kind of old but I hope maybe one of you can help me out.  I'm using an invoke node similar to what is above to print out an Excel spreadsheet to the default printer.  My issue is that when I try to print from the spreadsheet from the executable, the executable crashes.  I know it is that invoke node. The reason why I say that is because until recently I had two development computers, one running on Windows 7 LabVIEW 2010, and one running on Windows XP LabVIEW2010.  The original .exe was built with the XP machine, when I tried to make some changes with the Windows 7 machine and open the project it would say that there was a missing connection to the invoke node even though I did not touch that part of the application. I would then remove the invoke node, add it again and it would clear the error for whatever reason. I would then build the .exe with the Windows 7 machine and when it would run, the application would crash at the point where it goes to print the spreadsheet.  I got around this by building the .exe with the Windows XP machine, and it worked fine without any issues. However, my Windows XP machine cra**ed out so i'm no longer able to build the .exe on the XP machine .  I needed to make some changes to the .exe not anything involving this section of the code and for whatever reason when the application goes to print it crashes.  I get some criptic crash report from Windows that is pretty much useless.  I think its a Windows thing. This was workign correctly though until I did a build on the Windows 7 machine.
    Attachments:
    Printout Invoke Node Excel.png ‏70 KB
    crash1.png ‏22 KB
    crash2.png ‏23 KB

  • Generate a Report Dynamically without User Intervention and Output to XML

    Here's the scenario for which I am trying to find a solution. Any help would be greatly appreciated.
    I have a series of reports that the users generate from a UI by selecting the report, setting the values for a list of parameters, and then click a submit button. The report is generated in the UI for them to view. They can print it from here or export it to Excel.
    They would like to be able to schedule a report to run daily without user intervention using a saved set of parameters. The system would run the report automatically and email it to a defined set of email addresses.
    To do this, we need to have the report generated in a string or xml so a Java process can read it and email it.
    I see that I can change a report's template to export:xml so I feel that it is possible. How can I export a report to XML without user intervention? Can the report template be changd dynamically at runtime? Ideally, I need some way to call this same report and have it output as a string data or xml to be used by a Java process that would store and generate the report for email.

    Hi Kumar,
    From Program1 you are calling Program2, using submit syntax (inside Program1).
    While using submit, if you have correctly filled up the selection screen of program2, then it will AUTOMATICALLY get executed, WITHOUT F8.
    If there is any compulsary field in program 2, which does not get populated, then it will not run automatically, or unless some special code is written in program2.
    If you do not want the output of Program2 on screen, then u can use
    SUBMIT Program2 AND RETURN.
    In that case, no selection screen (of program2) will appear and neither the output of program 2.
    Regards,
    Amit Mittal.
    Edited by: Amit Mittal on Dec 23, 2009 4:10 PM

  • BO XI R2 - "Blank "Crystal Reports Viewer" window - attempt to print report

    My company recently set up a Business Object Enterprise XI Release 2 server.  On the server are a number of crystal reports that are run interactively by users, through the user console.  The expectation is that the user will log on to the BI server, click on the report title, enter the parameters, see a preview of the report in the Crystal Report Viewer, then click the print icon on the Crystal Report Viewer toolbar.
    Our corporate standard is current Windows XP SP3, with Internet Explorer 8;  By default, users are set up to use the DHTML report viewer.  The reports were developed with the Crystal Reports XI R2 report designer, and connect to an Oracle 10g database through Oracle client.
    When users attempt to view, then print the reports, the user is able to select the report, enter the parameters, view the report data, and even page through the report preview with no issues.  However, when the user attempts to print the report by clicking the print icon on the Crystal Reports Viewer toolbar, a blank "Crystal Reports Viewer" window pops up and remains indefinitely.
    The really puzzling thing about this issue is that for about 1/3 of our users, printing will work - a print dialog will appear, allowing the user to select a printer, and when the user clicks OK, the report will print.   For the other 2/3 of our users, the blank "Crystal Reports Viewer" window pops up.
    I have added the BO XI R2 server's address to trusted sites, adopted the lowest security settings for trusted sites, and enabled all activity I could think of in IE security settings (ActiveX controls-related).  I also ran the web site in compatibilitiy mode.
    Has anyone on this forum experienced this issue, and does anyone here know how to resolve it?
    Thank you,
    Bob Gardner

    I suspect that this behavior occurs because the client computer is unable to download ActiveX controls.
    The report viewer requires the PrintControl.dll to print reports from the client computer. The PrintControl.dll downloads automatically if it has not been previously downloaded on to the client computer, provided that the user that is currently logged on is able to download ActiveX controls.
    To enable the download of ActiveX controls on the client computer, perform the following steps:
    1) Open your Internet Explorer.
    2) From the Tools menu, select Internet Options.
    3) In the Security tab, select the web content zone that corresponds to your web application.
    4) Click Custom Level.
    5) In the Security Settings dialog box, scroll down to find the ActiveX controls and plug-ins section.
    6) Select Enable or Prompt for the Download signed ActiveX controls item.
    7) The print dialog box will now appear successfully when clicking the print button in the report viewer.
    If the above does not help, try to troubleshoot this as follows:
    1) click the print button (this will cause a postback to the web page) and then cancel the print dialog. right-click in the web page and select "View Source".
    2) Search for the word "printcontrol.cab". This will show you where the application is trying to download the printcontrol from.
    Paste the URL into a browser.
    3) If you get prompted to "open or save to disk" the url is correct and there is a browser setting or possibly even a system policy preventing the download.
    4) If you get a "404 page not found" or a similar error message, investigate the URL.
    5) If the issue is on your local web server, see if it is possible to browse to the URL in IIS manager.
    - Ludek

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

  • Sales Order Number in case of drop ship  in Standard PO Print report

    I want to print sales order number in case of drop ship in Standard PO Print report..But I am not getting any tag related to that..
    When I am checking the log file it is present in the log file but not in the Tags..Please help how can I get sales order number in case of drop ship..
    Here is the log file:
    Start of log messages from FND_FILE
    Entering Get_Order_Line_Info 2
    Entering Get_Drop_Ship_Line_ids...1
    no open order line
    line found now 18757558
    Exiting Get_Drop_Ship_Line_ids...1
    line_id 18757558om org 1274
    po org 1274
    from oe_order_lines
    got ship to ct name and location: GRUPO DE COMUNICACIÓN PROMECAL, S.L-1175623
    sales order info: 1.1-1-1-Closed-10000178
    ENTERING OE_SYS_PARAMETERS.VALUE
    Going to get the value for MASTER_ORGANIZATION_ID
    ENTERING OE_SYS_PARAMETERS_PVT.VALUE
    org_id has changed so delete the cache and reset the globals
    PARAMETER VALUE from the DB when org_id has changed : 1275
    ENTER GET_ITEM_INFO PROCEDURE
    ITEM_IDENTIFIER_TYPE : INT
    INVENTORY_ITEM_ID : 1695026
    ORDERED_ITEM_ID :
    ORDERED_ITEM : 40 x Battery 12HX330
    SOLD_TO_ORG_ID : 1684899
    EXIT GET_ITEM_INFO PROCEDURE
    got ct product and ship method: ES_40 x Battery 12HX330-
    Leaving Get_Order_Line_Info
    I am getting the sales order number 10000178 in sales order info: 1.1-1-1-Closed-10000178
    but how to get it in the report...

    Dear Nitishj,
    If the strategy is MTS then in my understanding you cannot get any sales order order number with reference to
    production made
    Reason is in MTS production will be made collectively without reference to sales order
    where as in MTO it does with reference to sales order
    Regards
    Madhu

  • 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.

Maybe you are looking for

  • How do I register a pre-owned ipod?

    My son gave me an old ipod video 30GB which I fixed, and as I have an Apple ID and other products I tried to register it. It is telling me that the date of purchase does not match the serial. It's so long ago, I am only guessing the date from the ipo

  • Why won't Bridge CS6 launch?

    I've just installed Photoshop CS6 (64bit).  I cannot launch Adobe Bridge - I get the message "Waiting for Bridge CS6....." and it won't progress beyond this point.  Has anyone got any idea what I can do?  I've rebooted the PC, but still the same.

  • After installing firefox version 31 I keep getting error messages that firefox cannot find some servers. How can this be fixed?

    I use Ebates. Now when I go to Ebates and choose a store, then the transfer to store website comes up and then an error message that firefox cannot find the listed server. I keep getting that message alot. On the frontier homepage there is an error m

  • How to use Ant

    Hi guys,   I am working on Adapter Development.I came to know that using Ant we can build .rar files. Can any one please tell me how to use that and where can i get that. Regards, Gowtham K.

  • Automatically loading songs

    My new iPod has trouble loading songs onto it. On all my previous iPods, the iPod has "dragged" all the songs off my iTunes library until it's own memory is full. With my new iPod nano, I have to specify each playlist individually and only the total