Printing Crystal 11.5 R2 with VB6 Directly to Printer

Post Author: fferguson
CA Forum: Other
Hi,
Does anyone know how to correctly supress the report prompting when printing directly to a printer?
I can see the correct paramaters being passed, but I still get prompted for paramaters after selecting the printer. (My code below)
Private Sub ApplyParameters(ByRef CRXReport As CRAXDRT.report, ByVal param As String)
  Dim CRXTables As CRAXDRT.DatabaseTables  Dim crxTable As CRAXDRT.DatabaseTable  Dim CRXSections As CRAXDRT.Sections  Dim CRXSection As CRAXDRT.Section  Dim CRXSubreportObj As CRAXDRT.SubreportObject  Dim CRXReportObjects As CRAXDRT.ReportObjects  Dim CRXSubreport As CRAXDRT.report  Dim CRXReportObject As Object    Dim CRXParamDefs As CRAXDRT.ParameterFieldDefinitions  Dim CRXParamDef As CRAXDRT.ParameterFieldDefinition  Set CRXParamDefs = CRXReport.ParameterFields
  Dim strParameters As String  Dim index As Long  Dim strParValPair() As String  Dim strVal() As String    strParameters = param    'Apply the parameters  strParValPair = Split(strParameters, "|", , vbTextCompare)        For Each CRXParamDef In CRXParamDefs    For index = 0 To UBound(strParValPair)      If InStr(strParValPair(index), "=") > 0 Then        strVal = Split(strParValPair(index), "=", , vbTextCompare)        If UCase(CRXParamDef.ParameterFieldName) = UCase(strVal(0)) Then        'auto type conversion does not seem to work with Crystal parameters          Select Case CRXReport.ParameterFields.GetItemByName(strVal(0)).ValueType            Case crBooleanField '9              CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CBool(strVal(1)))            Case crNumberField '7              CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CLng(strVal(1)))            Case crDateField '10              CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CDate(strVal(1)))            Case crTimeField '11              CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CDate(strVal(1)))            Case Else              CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (strVal(1))          End Select        End If      End If    Next index  Next CRXParamDef    'Set params on subreports where params are not linked  Set CRXSections = CRXReport.Sections  For Each CRXSection In CRXSections    Set CRXReportObjects = CRXSection.ReportObjects      For Each CRXReportObject In CRXReportObjects        If CRXReportObject.Kind = crSubreportObject Then 'type = 5          Set CRXSubreportObj = CRXReportObject          Set CRXSubreport = CRXSubreportObj.OpenSubreport          Call ApplyParameters(CRXSubreport, strParameters)        End If    Next CRXReportObject  Next CRXSection  End Sub

Hello, Chuck;
Oracle 11g is not tested with Crystal Reports XI R2 (See Platforms.txt). That said it should probably work.
What version of the Oracle client is installed on your application system? It should also be Oracle 11g.
What error are you getting?
Are you using the "Microsoft OLEDB provider for Oracle" or the "Oracle Provider for OLEDB"?
Have you tested the connection to Oracle 11g in the Crystal Reports designer?
If you save a copy of your report and change the connection to Oracle Native or ODBC to Oracle, does it work? That will eliminate the crdb_ado.dll driver from the picture.
Elaine

Similar Messages

  • Unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code

    unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code.  i don't believe mac allows for input on job code or printer code for permission to print

    I'm having similar problems with an HP OfficeJet 6500. One suggestion that improved the situation, but did not totally solve the problem, was to select "OfficeJet Pro L7700" for its drivers.
    One other suggestion is to turn off the printer, then simultaneously hold down the "#" and "9" keys and turn the printer back on. This hot key seems to reset the printer to factory defaults, allowing you to set things up anew.
    Finally, kvetch to HP. Their networking software clearly has problems in its relationship to OSX, but nobody on either side seems motivated to bring in a good therapist.

  • Printing Problems - HP LaserJet 2100 with USB/Parallel adapter - Print jobs 'hang'

    Hoping to get some assistance with a persistent and frustrating printing problem.
    I've got an older HP LaserJet 2100 that was working great until recently.  It doesn't have a USB port on it, so I have it connected to my iMac (21" 3.1 gHz, i7) via a USB/Parallel cable.  Up until now I have been forced to us Gutenprint (wss running 5.0.2) as the Apple provided drivers cause the printer to spit out pages upon pages of gibberish.
    Recently, when printing the document (or PDF, or whatever) gets sent to the queue, but doesn't seem to fully make it to the printer.  For lack of a better term, it 'hangs' at some percent (47%, 82% etc.) in the queue window and doesn't print.
    A few further details that are causing me extreme levels of frustration:
    I have reset the SMB and this results in being able to print one page normally, then the system returns to the problem above
    OSX can see the printer and I have deleted/added it many times
    Printing system has been reset multiple times
    On a restart, the first page that was trying to print does print out.  This sometimes happens when the log-in page appears, sometimes when I log back in to my user account.
    The printer is connected directly to my iMac and not through a USB hub.
    I have another printer (a new HP Officejet 6600) that works without a problem.
    Thanks in advance.

    This problem is most likely a deficiency in the parallel-adapter end of that cable. I'd look for another USB-parallel cable.
    There used to be a special driver that worked around the limitation of the parallel adapter "data shifter" - but it doesn't appear to be available anymore:
    www.buymelunch.org/printing/usbtb

  • HP Photosmart D7160 printer could it be fitted with a double sided print unit?

    I only need to know if my HP Photosmart D7160 printer was made with the provision of or could it be fitted with a double sided print unit.?  If I had got the answer I would have purchased the required part.
    i have been searching the HP web site on and off for the last four years for the answer to this question only to find myself going round in circles without ever getting any practical answer.  If and when HP have the courage to answer the question
    and the answer is what I think it will be I will take the printer back whence it came from and demand a refund in full!
    I have just tried a spell check and the website doesn't recognised the name/number of HP manufactured equipment that is clearly printed on the front cover and when I instal HP print cartriges HP tell me I have been a good boy.

    Page 9 of the user manual indicates there is an optional accessory for double side printing.  The data sheet here indicates that (in the US) the part number is:
    HP ph5582 Two-sided Printing Accessory
    Q5582A
    HP ph5582 Two-sided Printing Accessory Q5582A
    A Google search turns up a number of offerings.
    This forum is a peer to peer support forum.  If you want to Contact HP click on the link.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Printing a PDF file online with any OJ 100 printer,we receive unknown error light sequence.

    When printing a PDF file online on all of our Officejet 100 Mobile L411 USB printers, we encounter an undocumented error light sequence. The error light sequence we encounter is Power light blinks in conjuction with the Bluetooth light then those 2 lights blink off and the Resume light and both cartridge lights  blink on. then those three lights blink off and the power light and the Bluetooth light blink on again and so it goes. You cannot reset this error by any other means other than powering the printer down and the printer will not power down with the power button. The only way the printer will power down with the above flashing light sequence showing is to disconnect AC power and remove the battery.
    With the above described flashing light sequence displayed, the printer has no problem continuing to print and will continue to print other documents with the flashing light seguence displayed.
    If the above mentioned PDF file is saved off to the computer and then printed from there, it will print on this printer ok without starting the flashing light sequence described above so evidently there are control characters attached to the online PDF file that get stripped off when the document is saved. I don't know what those characters could be but I do know that only all of the Officejet 100 printers we have display this problem. We can print the same documents on our HP 470 mobile printers ok without any issues or have no problem printing the same document with other models of HP printers. It is only when printing this document with any HP Officejet 100 mobile L411 printer that we have this problem.
    As mentioned above, the flashing light sequence described above is not a sequence described in the Operators Manual so we don't know what it means. Also it is apparent that the online document(s) we are printing have some control characters attached to them that are incompatible with this printer but we do not know what characters they are. Are there some settings that we can setup in the printers properties that would solve this issue for us?
    As I have explained above, this particular flashing light seguence does not keep the printer from printing the online documents or any other documents succesfully, however this sequence cannot be reset by any other way other than killing all power to the printer.

    Hi Bailie,
    You might try looking for a paper jam or carriage jam.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02643100&cc=us&dlc=en&lc=en&product=4231408&tmp...
    Look at the 15th issue.  That's the closest I could find.
    Good luck.
    SandyBob
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP
    1-800-474-6836

  • Problem printing annotations in CWGRAPH control with VB6

    I am attempting to print a cwgraph control in VB6 using the ControlImage(or ControlImageEx) property and the annotations do not print correctly.  I am creating a series of annotations on the graph to represet if 1 or 2 infrared sensors are blocked.  The annontations are simple rectanges that are either filled with dark red (1 sensor blocked) or bright red (both sensors blocked).  On the form, this works perfectly.  The control image shows the annotations as not filled in.  I have attached a picture demonstrating what I am seeing.  The top image is from a printout and the bottom is what is displayed on the screen.
    Using ControlImage or ControlImageEx makes no difference. This is with the latest version of measurement studio 8.5 in vb6. 
    Thanks in advance.
    Attachments:
    graph.png ‏12 KB

    Hi Lars,
    I am printing using a DataReport so what I do is this:
    With Profile.Sections("ProfileData_Detail")
        Set .Controls("imgGraph").Picture = Me.cwProfile(GraphNumber).ControlImageEx(Printer.PrintQuality, Printer.PrintQuality)
    End With
    I have tried using ControlImage and ControlImageEx with the same results. I have also tried saving the controlimage directly to a file with the same results.
    This is how I build the annotations for the graph:
        For g = 0 To 2
            With Me.cwProfile(g)
                For i = 0 To NumOccupancySamples
                    'Only create an annotation if an infared sensor is blocked.
                    If lane(LaneNum).Car.Profile(i).Sensor1Active = True Or lane(LaneNum).Car.Profile(i).Sensor2Active = True Then
                        Call BuildInfraredCoordinates(i, 1)  'Calculate the values for xCoordInfrared and yCoordInfrared.
                        .Annotations.Add
                        .Annotations(.Annotations.Count).CoordinateType = cwAxesCoordinates
                        .Annotations(.Annotations.Count).Shape.LineWidth = 0
                        .Annotations(.Annotations.Count).Shape.Type = cwShapeRectangle
                        .Annotations(.Annotations.Count).Shape.SetCoordinates xCoordInfrared, yCoordInfrared
                        'Fill rectangle if sensor is active
                        If lane(LaneNum).Car.Profile(i).Sensor1Active = True And lane(LaneNum).Car.Profile(i).Sensor2Active = True Then
                            'Both sensors blocked.
                            .Annotations(.Annotations.Count).Shape.FillVisible = True
                            .Annotations(.Annotations.Count).Shape.LineColor = COLOR_BOTH
                            .Annotations(.Annotations.Count).Shape.Color = COLOR_BOTH
                        Else
                            'Only 1 sensor blocked.
                            .Annotations(.Annotations.Count).Shape.FillVisible = True
                            .Annotations(.Annotations.Count).Shape.LineColor = COLOR_SINGLE
                            .Annotations(.Annotations.Count).Shape.Color = COLOR_SINGLE
                        End If
                        .Annotations(.Annotations.Count).Caption = ""
                        .Annotations(.Annotations.Count).SnapMode = cwCSnapFloating
                        .Annotations(.Annotations.Count).Plot = 1
                    End If
                Next i
            End With
        Next g
    The annotations just indicate if none, 1 or both infrared sensors where blocked.
    Thanks.

  • Printer will only work connected with USB direct to computer

    A few weeks ago I was printing a long document. In the middle of it, it went on hold. Since then I cannot print wireless with either of my computers. If I plug the USB direct from the printer to the computer the printer will work. I cannot print wireless. Do I need a new Airport?

    Welcome to the discussions!
    +Do I need a new Airport?+
    Try a simple reset of the printing system as follows:
    Make sure that the printer is plugged into the AirPort Express and everything is powered up
    Open System Preferences on the dock and click Print & Fax
    Right-click or control-click in the area where you see the printer listed
    Select Reset Printing System
    Click the + button
    Highlight your printer on the available printer list
    Click Add
    Does that provide any help?

  • Is there any way to increase the size of printing on each page? With most of the printing it is really tiny. printing

    I have been using I.E. with myyahoo.com as my homepage and I started having a page freeze for 30 seconds (approx.) 5 or 6 times a session. this is powered thru ATT.net. I thought that Firefox may correct this problem. When I installed Firefox I decided to use myyahoo.com as my home page. Yahoo/IE has a magnifying glass icon in the lower right corner that allows me to increase the print size. When I am on Foxfire the basis text size is 1/16th of an inch! How can I increase this size?????????????
    #2 is it possible to have a different home page for Firefox and leave myyahoo.com on IE ???????????

    1. The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/
    2. See [http://support.mozilla.com/en-US/kb/How+to+set+the+home+page How to set the homepage]

  • Problem printing horizontal text in smartform with zebra Z6M label printer

    hello,
    The situation is this:
    There is a Z smartform wich prints a label to a zebra Z6M label printer with the text and barcodes vertically.
    The form have a command in the main windows with the parameter: S_LZPL_SETUP     '^FWR'
    This label works fine, but the client want to change the form, they have told me to create a new smartform and print the info horizontally, using the same printer.
    The tests i have done are the following:
    create a smartform from ground and write a template text and a barcode with a new font of system barcodes. the bardoce is shown ok(it is shown horizontally), the problem is that the template text is shown vertically, as in the original smartform.
    then i tried on another zebra ZM600 label printer, similar model, but not the same, and the smartform printed was ok (text and barcodes shown horizontally). So i think is a configuration setting problem, but i dont know where to search.
    i have checked the label printer parameters in SPAD, but didnt find anything souspicios.
    have you any idea?
    thanks in advance.

    See these if they be of any help.....
    BARCODE:
    goto smartform styles-> create a style-->
    create a character format.
    under standard settings give the bar code name
    use this style in ur smartform. select the data field which u want to barcode print and assign the character format
    Similarly
    SAPSCRIPT
    open the form and click the character format button and
    repeat the step as above....
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/frameset.htm
    Go to Character formate in your form.
    create a new char formate with enable BAR code AND
    you can give its type too.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    a barcode printer
    a barcode reader
    a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Creating Bar code:
    ) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Check this thread for detail information.
    How to print Barcode in te SAP SCRIPTS?

  • Cant print document after lion installation with my fuji xerox printer

    i cant print after lion installation with my fuji xerox c1110b printer, even after i remove and reinstall the driver.
    in the print window  under status indicate error,
    for other program even the print button is not working,  need help
    thanks

    As a temporary fix until the new driver, you can still use Generic PCL Laser printer selection to print black and white on Fuji Xerox C1110B.  When adding the new driver, select Options & Supplies.  When the new window rolss down, click on the middle Driver button.  Then select Generic PCL Printer, and OK.
    Maybe there is another substitute driver we can use to print in color as well until Fuji Xerox gets its act together?

  • Printer error using Time Capsule with Vista64 and HP printe.  Any one else?

    I'm running Time Capsule with my MacBook and Vista 64 PC, and trying to print on a HP5510 All-in-one.
    The Time Capsule is set up according to the manual and I can print wirelessly from the MacBook. Also, the MacBook and the PC can both access the TC HD.
    The problem comes when I'm trying to print with the PC. It will print about 3/4 of the page and stop, showing an error. At that point, I cannot purge/cancel/restart the print job. I need to shut down the PC and printer to get rid of the error.
    Anyone else have this problem?
    Thanks
    Ray

    Have you downloaded and installed the following updated Mountain Lion compatible driver and software for your model?:
        http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-107723- 1&cc=us&dlc=en&lc=en&os=219&product=4073738&sw_lang=
    Hope this helps

  • Can't print from some sites visited with Firefox, but can print from same sites visited from IE.

    From IE I can print emails from my Google email but not from Firefox. For some reason Firefox keeps changing my print settings and that prevents printing unless I manually change them back. Also I have had trouble printing from dailysudoku.com. I am running Windows 7 Home Edition on an HP laptop. I tried uninstalling Firefox and then reinstalling, but that didn't solve the problem.

    No. This didn't work. And when I went to about:config I received a warning message that I might void the warranty if went there. And I should go there only if I knew what I was doing. If followed the instructions very carefully and reset the print settings as you suggested. I also got the following message:
    Some users may need to reset all the print.printer preferences for a particular printer, if resetting this one master preference doesn't solve the problem.
    Will I need to try to reset some of the other print.printer preferences besides print.printer_print? I'm a little nervous about doing something that could void my warranty if I don't know exactly what I'm doing.

  • Trouble printing custom sizes from pages with my HP photosmart printer

    I am having a problem printing a custom size to my HP photosmart printer. Any advice would be helpful!
    Thanks

    Hi Jerry,
       I am trying to print invitations. I have all of the correct measurements typed in, but it keeps telling me that there is a paper size mismatch. Is there some sort of conversion? This is frustrating as all get out. Thanks.
    B

  • Barcode printing - Crystal Reports 8.5

    I'm using Crystal Report 8.5 with VB6.  I'd like to print a barcode on a distributable report.  I have accomplished this by downloading a font, but I don't want to have to install this on any and all users' workstations.  Is there a way a barcode can be printed without having to install something on each users' PC?
    Thanks.

    FYI - the font also needs to be installed on the PC opening the PDF.  That was something we tried out of curiosity.  The one weird thing is that once we copied the font into the \Adobe\Resources\Font directory, the PDF showed the barcode.  We then removed the font, rebooted the PC, and when we opened the PDF, the barcode still showed.
    We opened the PDF with Acrobat reader, so there was no save done.

  • When I print I get multiple pages with a little print on all pages of what I want printed

    when I print I get multiple pages with what I am printing with a few lines on each page till what I have printed is complete.
    This question was solved.
    View Solution.

    mamorse,
    Thanks for the additional info. Lets try downloading and running the Print and Scan doctor located here. It can fix a lot on its own but if not it will give us a better idea of what is going on. The weak signal is not likely the culprit (as it has been working for a good while) but we can try altering that if other steps fail.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

Maybe you are looking for