Cystal Report XI R2  11.5.9.1076 using RDC and VB6.  SelectPrinter not work

I have been using crystal report since version 3.0
I am trying to re-directed a report output directly to a printer. (Not the default printer)
The following is the relevant code.
It executes, but the report doesn't go to the proper printer and in design mode it crashes the environment sometimes.
            If PrinterName <> "" Then
                Dim DriverName As String
                Dim PrtName As String
                Dim PortName As String
                Dim Prt As Printer
                For Each Prt In Printers
                    If UCase(Prt.DeviceName) = UCase(PrinterName) Then
                        PrtName = Prt.DeviceName
                        DriverName = Prt.DriverName
                        PortName = Prt.Port
                        Rpt.SelectPrinter DriverName, PrtName, PortName
                        Rpt.PaperSize = Printer.PaperSize
                        Rpt.PaperSource = Printer.PaperBin
                        Exit For
                    End If
                Next
            End If
Any help would be greatly appreciated.
Kalman Skulski

Thanks for your quick response Elaine.
I tried your suggestion. 
I changed my code and added Rpt.PaperOrientation = crDefaultPaperOrientation
                        Rpt.SelectPrinter DriverName, PrtName, PortName
                        Rpt.PaperSize = Printer.PaperSize
                        Rpt.PaperSource = Printer.PaperBin
                        Rpt.PaperOrientation = crDefaultPaperOrientation
But it still is printing to my default printer and not the printer I am setting it to.    It used to work in 8.5.
Kalman Skulski

Similar Messages

  • I downloaded Acrobat Pro XI on my MacBook and it's not working. There's a message: Click reopen to open the application again. This report will be sento to Apple automatically. I did it several times and even restarted my laptop. Nothing happened. Any hin

    I downloaded Acrobat Pro XI on my MacBook and it's not working. There's a message: Click reopen to open the application again. This report will be sento to Apple automatically. I did it several times and even restarted my laptop. Nothing happened. Any hints?
    Thanks,
    Cristina

    you don't have to purchase acrobat pro xi.  you can, but you can also use it via adobe's creative cloud subscription service.
    to use it via cc, uninstall your current trial.
    then go here and log in with the same adobe id used to pay for your cc subscription and start your acrobat xi download, Adobe: Creative, marketing, and document management solutions

  • Firefox will not open, it ask if I want to send a crash report. All the questions I have read on this matter have not worked. I can open your website through internet explorer. What can I do?

    When I try to open Firefox from my desktop it will not even open to the internet, it does pop up a box that says "do you want to report this crash" I have sent the report and still can not have any luck fixing this problem. I can go to the internet if I open internet explorer and then go on your web site but it will not allow me to down load Firefox. What can I do to fix this?

    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)
    *https://support.mozilla.com/kb/Mozilla+Crash+Reporter
    *https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Combination of Submit report with SELECTION-SET and WITH is not working

    I tried all possibilities to make the additional parameter also pass to the report along with variant but it just does not work. Anybody faced this issue before?
    Code snipped which is not taking pernr parameter along with variant 'Report Dis'.
    SUBMIT H99CWTR0 USING SELECTION-SET 'REPORT DIS'
           WITH pernr = pernr-low
           EXPORTING LIST TO MEMORY
    AND RETURN.

    Hi,
    THis sample code worked for me
    data:params type rsparams.
    data:it type table of rsparams.
    params-low = '2003'.              "In variant ZSURESHPAGA the actual value is 2004, but it got executed for 2003.
    params-kind = 'P'.
    params-option = 'EQ'.
    params-sign = 'I'.
    params-selname = 'P_YEAR'.
    append params to it.
    CALL FUNCTION 'SUBMIT_REPORT'
      EXPORTING
        report                 = 'Z12256_TASK1'
       VARIANT                = 'ZSURESHPAGA'
       SKIP_SELSCREEN         = 'X'
    TABLES
       SELECTION_TABLE        = it
    EXCEPTIONS
       JUST_VIA_VARIANT       = 1
       NO_SUBMIT_AUTH         = 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.
    SUBMIT H99CWTR0 USING SELECTION-SET 'REPORT DIS'
    WITH pernr = pernr-low       "<----check this statemnent
    EXPORTING LIST TO MEMORY
    AND RETURN.
    Edited by: Keshav.T on May 13, 2010 4:07 PM

  • My iphone sorry, I restore my iphone ask Apple ID username and password? I entered, it can not reported to unlock my ID. I used iforgot the ID is not changed. I have icloud how active threads. I used ios 7.0.6. thank

    restore my iphone, iphone Apple ID requirements? but not to open it. I use iforgot ID. not be. I did not change the username and password. i need help. I used ios 7.0.6. thank

    Hi tuyet nhu nguyen,
    Given that you recently restored your iPhone, it sounds like you may be having issues with iOS Activation Lock. You may find the following articles helpful:
    iCloud: Activation Lock
    http://support.apple.com/kb/PH13695
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/ht5818
    Regards,
    - Brenden

  • HT201268 i tried for 4 day now to remove a podcast and it has not work yet. i've even did a (Click Report a Concern) and sent an email and still no answer

    i tried for 4 day now to remove a podcast and it has not work yet.

    I have tried clicked "remove podcast" on each of the DMLive podcast pages, explaining to them who I was and what my job title was here, but all I got in return was an e-mail that said "have the administrator contact us." As I explained above, there is no admin on this account anymore and whoever was the admin has long since moved on.
    Jeremy,
    For understandable reasons, just because there is "no admin on this account anymore" does not mean they will take instructions from someone else. 
    Make clear to Customer Service that you are now the officially responsible party on that account now.

  • Exporting Cystal Reports into CSV format

    Hi,
    I wanted to export some reports in CSV format with following options checked in Crystal 2008:
    These options are given under separated Values exports options:
    1. Mode = Standard Mode
    2. Isolate Report/Page sections and Isolate Group Scctions check boxes checked
    I could not find properties in CR object to set as per above requirement in VB6 code.
    I am searching these properties in  ReportObj.ExportOptions
    Can anyone please advise in this regard.
    Thanks in advance.
    Regards-
    Bhoopendra

    Hi Bhoopendra,
    The Report Designer Component (RDC) COM component has been retired with the release of CR2008. Using CR2008 in VB6 is not supported, and it's not expected to work.
    The recommended upgrade path is to migrate to the Crystal Reports .NET SDK. You can find getting started information in the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
    Sincerely,
    Dan Kelleher

  • SRW.Run_Report is not working in Reports from 6i to 10g

    Hi,
    I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name ||                                                                      
    ' server='||l_server
    It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name
    );

    Thank you for your reply.
    Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
    I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
    Here it is some example code.
    For example, in 9i I have the following code:
    div id=div_plus_GENERALE style="cursor:hand; display:none;"
    <td> width=8 </td>
    <td id=butt align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';
    "onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
    butt_clicked=this; restore_butt_style=butt_off_lit;
    this.style.cssText=butt_on_lit;
    var x = document.getElementById('Freccia_' + freccia_old);
    x.style.display = 'none';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    In 10g the HTML code looks like this:
    div id=div_plus_GENERALE style="cursor:hand;"
    <td width=8> </td>
    <td align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';">
    <a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
    onClick="var x = document.getElementById('Freccia_' + freccia_old);
    x.Style.visibility='hidden';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    At this point I don't know what should I investigate next.
    Thank you very much.
    Daniela

  • SSRS 2008 Work order Report , when added item descriotion , somehow costgroup id is not working , donot know why, ( need help)

    SSRS 2008 Production orders created report, when I added item description some how cost group id is not working ,
    my costgroup id did not break into labor , only Mat Cost showed in the total,
    my query is as below,  did I link the wrong field,   I want to show Labor total also
    can some one suggest what I did wrong .
    any advise will be great
    SELECT        PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
                             PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
                             PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
                             PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
                             PRODCALCTRANS.LINENUM, INVENTTABLE.ITEMNAME, INVENTTABLE.ITEMID AS Expr1, PRODTABLE.INVENTTRANSID
    FROM            PRODTABLE INNER JOIN
                             PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID INNER
    JOIN
                             INVENTTABLE ON PRODCALCTRANS.DATAAREAID = INVENTTABLE.DATAAREAID AND PRODCALCTRANS.KEY1 = INVENTTABLE.ITEMID
    WHERE        (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
                             (PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate) AND (PRODCALCTRANS.COLLECTREFLEVEL
    = 1) AND
                             (PRODCALCTRANS.CALCTYPE >= 0)

    Hi Bitia,
    As per my understanding, after you add Item field to the report, it does not calculate total of matl group, right? If that is the case, please refer to the following steps to troubleshoot the problem:
    Modify the dataset used to retrieve data, delete the fields will not be used in the report.
    Run the query in SQL Server Management Studio (SSMS) to make sure that there is data for matl cost group.
    Make sure that row group and totals are correctly added.
    In addition, do you want to add Finished date to page header? If that is the case, we can use ReportItem to achieve the goal. Please refer to the following steps:
    In design surface, right-click the report and click Insert, then click Page Header.
    Drag Text Box from Toolbox to page header.
    Right-click inside of Text Box, then click Expression.
    In the expression text box, type the code like below:
    =ReportItems!FinishedDate.Value
    If the problem remain unresolved, please provide the screenshot of the report in design view, the following screenshot is for your reference:
    Reference:
    ReportItems Collection References
    Adding Grouping and Totals
    Thanks,
    Wendy Fu

  • Right click not working on BI web report

    Hi,
    We are facing an issue while working with BI 7.0 on Web.
    When we execute a report on the web and right-click anywhere on the characteristics, Menu options-Filter, Change Drilldown, Broadcast & Export etc - are displayed for the first time. After some time when we right click again, the menu options do not appear and even drag and drop does not work.

    Hi Nisha,
    Could you help us with what GUI front end version and patch do u have, What BEx version are u using.
    May be you should upgrade you gui to 7.10 and patch 11 or 12, and also install the corresponding BW and BI addOn.
    Bim, Let us know what your version of BEX and GUI front end is.
    reagards,
    Sree.
    Edited by: Sree Nair on Sep 8, 2009 7:19 AM

  • Reports are not working in BI 4.1

    Hi,
    Hi,
    Environment: BI 4.1, SAP BW and Oracle 11g.
    Users are imported from BW.
    I am facing issue in 4.1 sp2 After migrating 4.0 to 4.1.
    All UNV reports are working fine except reports on Oracle
    Database in BI launch Pad, those reports are working fine in Rich client.
    I have installed Both 32 and 64 bit Oracle drivers in 4.1 servers.
    Thanks in Advance

    This is a known and common issue and also we have encountered this after moving to 4.1 SP2..
    This is actually related to the DSL bridge service  not available to use or not running which will only affect UNX based report and BICS report but UNV and rich client would work as they do not use the DSL services...The actual reason of this is there are some JAR files which are needed for this service and got corrupted while installing
    You or your admin has two options for this  ( If you already tried creating a new APS dedicated for DSL Bridge and it does not work)
    1.If you have a stand alone installation and not a cluster check the installation log file and repair the installation
    2.This is how we fixed.. If you are in a clustered environment then if the one of the App server is running fine for the DSL bridge server .. We copied the JAR files relevant for the DSL bridge from the APP server which works fine for the DSL bridge server and put those files on the server not working.. once this is applied we needed to restart the server and create the APS with DSL bridge service which started and worked fine..

  • BEx formula change not working in existing Analysis for Olap/Analysis for Excel reports

    Hello all,
    I posted this in Analysis for OLAP, but there has been no response so I'm hoping perhaps you BEx experts can help me.
    I had to modify a formula in a Bex query to have it calculate the results of the formula by summation.
    I checked the query using BEx Analyzer and it summed correctly.  If I create a new analysis for olap report, it sums correctly.
    If I modify an existing report, it does not pick up the change.  Existing Analysis for Excel reports also do not pick up the new summary calculation.
    Using the CMC, I edited the connection and reselected the Bex query, but that did not work either.
    Here it is working in the query:
    Line Discount is a formula with logic checking to see if "product list price total amount" is 0, set the line discount to 0; otherwise calculate it as "product list price total amount" - Net Sale.  So the total needs to sum of the line discounts (0+2820+2820 = 5640) and not be the Overall result "product list price total amount" - Overall Result "net sale" (13960-96720= -82760).
    Here it is in an existing Webi report - working:
    Here is what is happening in an existing Analysis for OLAP report - not working:
    I also tried to unselect Line Discount as a key figure from the existing report and reselect it, but that did not work.
    I'd like to find a solution so that all the reports that use this query won't have to be rewritten.
    I'm on BW 7.0 EP 1 SP 10 and BI 4.0 SP7 Patch 5.
    Thank you for your help,
    Susan

    Hi,
    Apply Exception aggregation on line discount formula--Exception aggregation as Total---Reference characteristic as Promega product.
    Make sure to refresh the webi report once after the changes has been done.
    If this does not work then you can apply summation calculation for that column at webi level as well.
    Regards,
    AL

  • HT204088 charged twice for an app and report problem link not working help

    Please help charged twice for an app and link does not work to report this rang apple they cant help because apps are all online only

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Youtube not working on Firefox - Lots of people around the world reporting same thing! February 18th 2015.

    Just checked Youtube and it's not working, all i'm getting is a black screen with a spinning circle.
    Have checked downdetector.com and Isitdownrightnow.com and lots of other people around the world reporting the exact same problem even though Youtube is playing fine for them on other browsers like Chrome.
    I'm fully up to date both on my Firefox and Flash and Youtube was working fine for me yesterday.
    Is this some Firefox problem? as thousands of people around the world are having same problem.
    Thanks in advance.

    For other users finding this topic in the future:
    1) Enter the config by typing about:config in the adress bar.
    2) Enter media.mediasource.webm.enabled and press enter.
    3) Right click on it and change to true, for some reason it is set as "false" which makes MSE & WebM VP9 not work properly.
    4) Visit: https://www.youtube.com/html5 and check that everything is OK.
    5) Try to watch a video. It should work now.

Maybe you are looking for

  • API JNA e Threads - FORZEN WINDOW

    I'm creating one aplication JAVA DESKTOP for open the WEBCAM USB or NATIVE. I'm using JNA for open library native windows avicap.dll My system operation is Windows 7 I have 3 interfaces: One have name MapHWND package interf; import com.sun.jna.FromNa

  • HT201320 how do you know what the server is for microsoft exchange

    I'm trying to set up another email account through my iphone. This email uses Microsoft Exchange. I put in the email, username, and password. It is now asking for a 'server'. I'm not sure what it is or where to find it. Please help! Thanks!

  • Problem in viewing the source code of a package using all_source

    I have created a package and compiled it in schema1.I have created public synonym of the package.Now I am logged in some ohter schema say schema2. If I am using TOAD, I can see the body of the package from schma2 but if I am using sqlplus and using a

  • UDM - CLEARED: Collection Disabled

    We are encountering an interesting problem and we would like to see if there is a solution available. We have a UDM that queries our RMAN catalog which resides in the same instance as our grid repository. The query is really simple: select b.db_uniqu

  • Mx_internal_uid problem with advanced datagrid

    I have a XML structure like this: <Projekti ...attributes> <Tehtava ....attributes /> <Tehtava ...attributes /> </Projekti> <Projekti...> ...etc And I'm populating advanced datagrid with this hierarchial data, so I can get a tree view in datagrid whe