VS2008 - ReportDocument missing data when exporting to PDF

Hi all,
First and foremost, I'm using:
- VS2008 with CR Basic (10.5.3700.0)
- CR 2008 SP4 (12.4.0.966)
- SQL Server 2008
I've developed a small VB.Net application that's supposed to simply load a report, set appropriate connections and parameters and finally export it to PDF.
While it works on simple reports, I'm having trouble with a report that uses a Stored Procedure to link between two tables. The PDF shows all the data that's obtained directly from tables, but misses the details that depend on the Stored Procedure.
This same report previews perfectly on CR 2008 SP4, where it's been developed.
What I've tried, based on SDN and general web search:
- Different ODBC and OLE DB (both SQLOLEDB and SQLNCLI / SQLNCLI10): No change.
- Compile in x86 and x64: No change.
- Add report to VS2008 project and preview it: No change; same data shown, same data missing.
- SQL Trace while previewing with CR2008 and exporting with .Net application: This showed something interesting; one fairly  simple SQL query when using CR2008 (that successfully returns data when pasted to SQL) was transformed into a query with several joins and cross joins (that does not return data when pasted to SQL) when using the application. Links being somehow changed, I presumed.
- Printout all the Database.Links from the ReportDocument prior to exporting: showed they were all correct.
- Following a post on this forum I've inserted a VerifyDatabase command after loading and setting connections: I now get an "Error in formula" stating that one of the Stored Procedure's fields that's used in a formula "is not known". Commenting this line  results (again) in a successfull export of a PDF... but with the same missing data.
Any thoughts?
Thanks in advance!
Regards,
Nuno
Edited by: Nuno Pinto on Oct 6, 2011 3:41 AM
Edited by: Nuno Pinto on Oct 6, 2011 3:46 AM

I don't think the language was the problem, but I had problems teasing out the correct info I needed (e.g.; CR 10.5 vs. 12.x, 32 bit vs. 64 and so on. But I know where the problem is now:
SAP Business One reports
This is a special OEM build of Crystal Reports.
It uses a database driver that CR 10.5 does not ship (something like crdb_SAPBusinessOne.dll (?))
So, you can not use CR 10.5 as it is missing the driver.
Using CR 2008 assemblies (12.x) will potentially be also problematic. While you will have the SAP One driver, you may not have the neccessary database logon APIs exposed.
E.g.; more than likely, this will not work. But, you can try the following;
Make sure you are using CR 2008 (e.g.; remove all of your CR 10.5 references)
Look at the KB [1553921  - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]. there is a utility attached to the KB that will write out the DB logon code for you - in VB and C#. Use that code to try to connect to the report. The utility uses InProc RAS SDK which is part of CR 2008 and it is a free runtime - just like CR SDK. For basic info on working with InProc RAS SDK see the article [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
Now, keep in mind that I have never seen, never mind worked with a report based on SAP Business One (thus my ignorance as to the name of the actual CR DB driver). So this may work. Or not. All I can do from here is keep my fingers crossed. But please do share any successes or failures...
- Ludek
Edited by: Ludek Uher on Oct 7, 2011 1:46 PM

Similar Messages

  • Missing data when exporting webi to excel (not 65536 limit problem)

    Hi guys
    I just meet a problem about webi that it will miss data when exporting webi to excel.
    It's not about 65536 limitation, as my webi report do some aggregration and limitation and never beyond that limitation.
    Also there are 2 tabs in my reports, if I split the 2 tabs into 2 separate reports and export them separately, then problem disappeared.
    Any ideas on this?

    Hello Claes
    according to:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    Tools => Import and Export => Specifying the Sequence of the External Data Structure => External File Structure: Specification
    Table EST07 should be part of export file. I am not sure if the packing requirement ist part of EST07.
    Furthermore wirh ECC 6.0 EnhPAck3 some changes happend generally in the area of DG classification.
    E.g. Dynamic dangerous goods classification. I am not sure if these changes are "included" in some sense in the EH&S data download.
    With best regards
    C.B.
    PS: please check this link on the top:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    Refer to "Table Assignment: Specifications"
    I believe packaging requirement is part of table EST0B but this is part of the download file.
    Edited by: Christoph Bergemann on Aug 27, 2011 7:12 PM
    Edited by: Christoph Bergemann on Aug 27, 2011 7:13 PM

  • Missing data when exporting to "MS Word (*.doc)" and "RTF (*.rtf)"

    Hello,
    We are using CR XI R2 SP3 in our product.  The reports that we generate (using ODBC dsn) show URLs from the database as hyper link text fields.  When we export the report to "Microsoft Word (.doc)" or "Rich Text Format (.rtf)" format, even though the export operation succeeds, the report is missing data when it encounters a URL that looks like following.  There is basically no data after that URL.
    http://www.xyz.com/kType=t;s.linkName=n;s.t()};s.ssl=(s.wd.location.protocol.toLowerCa
    And when it encounters a URL like following, MS Word complains that the file is invalid even though the export succeeds.
    https://www.xyz.com/m));if(m%3E0&m!=e)if(parseInt(c.substring(m+1,e%3C0?c.length:e))%3Cd.get
    If we export the report to pdf format, then everything works just fine.
    Any help on this will be highly appreciated.

    Hi Sumit
    Try to set the URL field with the RTF format. To do this try following:
    1. Right click the field->Format Field.
    2. Click the paragraph tab->Text Interpretation->RTF Text
    Now try to export it.
    Hope this helps.
    Regards
    Nikhil

  • Missing objects when exporting to PDF

    I have seen some discussions on this, but no solution. I am using Indesign CS5.5 all up to date. Every now and then I end up with an exported PDF that does not have all the pages objects, text or elements included on all the pages. This seems to occur more often when I am doing a data merge and end up with 750 or 1000 page file. It also seems to be master page items. All Master page items do make it into the merged data file just fine, but then do not make it to the exported pdf. It leaves me scratching my head. The first, two, or three pages of the pdf will be fine, it's when you start scrolling through the document that you realize that items are missing. And for me, the first time was after printing a rush job, and finding the problem.
    Underdog

    I create the merged indesign file from the data merge panel. I then merge all records to a new indesign file. All items are created in the new indesign file. Master page items no problem. It's when I then export to pdf that I have the problem of missing ojects, text and so forth in the pdf. Usually the problems show up around page 3 and after. For some reason the first two or three pages will show fine. I have learned to be very careful about assuming that the pdf is correct.
    I am using a mac mini 10.7.5 with Adobe Creative Premium Suite 5.5, all applications are up to date. Mac OSX is showing up to date as well.
    Underdog

  • SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is 500)

    Hey Folks,
    When exporting SSRS 2008 R2 report  to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is
    greatly appreciated.  Inherited this and not sure if this would be configuration issues or something else. It is happening on a number of reports.
    Thanks.

    Hi Humbly,
    According to your description, when you export report into CSV or Excel format, some rows are missing.
    In your scenario, since you are missing data “rows” in your exported file, we are guessing if you have any visibility setting like toggle which hide those records. It’s possible that you have set toggle or visibility in your report. After exporting
    Excel/CSV, some data might not appear properly. In SSRS 2008 R2, it has reported this kind of issue about data missing after exporting. However, those scenarios are not exactly same as your issue. It mostly turns out be conflict between data and “layout render”
    and related to DataElementOutput property. DataElementOutput property controls export behavior, it indicates which report item data should appear in Excel/CSV render. For more information, please refer to this article: Reporting Services:
    Why aren’t all my report columns exporting to CSV and/or XML?.
    As we tested in our environment(SSRS 2008 R2), no matter what we export into CSV or Excel, we get same results as in BIDS . So I would like to know your report design structure. If possible, please provide some screenshots about results in BIDS and Excel/CSV
    render extension results. It may help us find out the root cause of your issue. Thank you.
    Best regards,
    Qiuyun Yu

  • Missing image when export to pdf & in High Quality Display

    Customer sent me this file so I have no history. Latest version of InDesign. There are a few images that when I select the box it does not show it as linked, but there is an image there. These same images/boxes disappear when I select View>High Quality Display & they are also missing when I make a pdf. Many other images are linked and work fine. What's going on with these other images/boxes? Embedded maybe? I don't have experience with embedded images, how do I get them to show when making a pdf?

    Is this what your looking for Peter?

  • Missing data when viewing older pdf in Adobe Reader XI

    Hi.  I have a large number of older PDFs which I can view fine in Adobe Reader 8 but when I view them with Adobe Reader 11 some of the lighter data is not visible.  Is there some setting which would cause this?  Do you have any other suggestions?

    HI.  I didn't mention that Adobe 8 is on a windows server 2003 machine and Adobe 11 is on a Win 7 machine.  I was able to get around this problem by opening the pdfs on the server 2003 machine with acrobat 8, saving them to postscript files, then running them through Adobe Distiller 11 on the Win7 machine with the default setting of High Quality Print.  This seems like a lot of trouble.  Is there a better way?

  • Missing data when exporting specification (LS_UN_SUB)

    Hi all,
    I am trying to export the specification LS_UN_SUB as a .dat file. The problem is that some data in the property tree is not exported to the file. In this case packing requirements and transportation regulations is not exported while risk classifications etc. are exported.
    When I open the exported .dat file I am able to see e.g the table for risk classifications (EST0D) however the packing requirements that I believe is stored in the SAP table EST07 is not included in the file.
    I have tried to change the exchange profile with no luck so far.
    Thanks in advance for any help!
    //Claes Ohlsson
    Edited by: Claes Ohlsson on Aug 26, 2011 3:36 PM
    Edited by: Claes Ohlsson on Aug 26, 2011 3:36 PM

    Hello Claes
    according to:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    Tools => Import and Export => Specifying the Sequence of the External Data Structure => External File Structure: Specification
    Table EST07 should be part of export file. I am not sure if the packing requirement ist part of EST07.
    Furthermore wirh ECC 6.0 EnhPAck3 some changes happend generally in the area of DG classification.
    E.g. Dynamic dangerous goods classification. I am not sure if these changes are "included" in some sense in the EH&S data download.
    With best regards
    C.B.
    PS: please check this link on the top:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    Refer to "Table Assignment: Specifications"
    I believe packaging requirement is part of table EST0B but this is part of the download file.
    Edited by: Christoph Bergemann on Aug 27, 2011 7:12 PM
    Edited by: Christoph Bergemann on Aug 27, 2011 7:13 PM

  • SSRS Report is missing data when exported to Excel via a subscription

    I have an SSRS report on a daily subscription that creates an Excel attachment and emails it  to a number of users. Some of the users are reporting that they cannot see all
    of the data in the Excel attachment.
    The report has a date column and 6 numeric columns, and the affected users cannot see the numerical columns - the fields are empty. The date column is displaying
    correctly along with all of the column headers.
    If however I change the format to XHTML, all data is displayed for all users.
    What's weird is that it is not affecting all users - for the affected users, the file size of the attachment is considerably smaller so it doesn't look like the
    issue is with their PC's - the data is not there to begin with.
    I've tried setting the DataElementOutput property on each of the fields to Output but no luck.
    I am using SQL Server 2008R2.

    Hi Wolfmeister,
    Glad to heard that the issue had been solved and thanks for your sharing.
    It will be very beneficial for other community members who have similar questions.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Background missing when export to PDF CS5.5

    Hi,
    I have seen some similar posts (all non-current) to the one I am writing however, my issues are not solved by the solutions posted in previous discussions.
    My problem is that when I am exporting an IND file to PDF, when I open the PDF all of my background images are missing. In most examples this is a full page black box. But since testing this problem I have encountered the same issue with any colour and some photographs.
    I am working in CS5.5, with all software up to date (version 7.5.3)
    I have tested this in new documents and old documents that previously would have exported the background.
    These items are not on master pages. I have tested this on brand spankin new pages and existing ones (with and without any elements on master pages)
    I have tested the boxes with and without transparency.
    There is no issue with overprint or the overprint preview check box.
    I have tried saving the file as an .IDML and reopening to see if it will 'debug' the file. I have exported the PDF as every kind of option. I have restarted the computer and the program several times. I have checked for new updates.
    The only way that I have 'cracked' this issue so far is to break the one large background image into at least 3 overlapping solid boxes. It seems that you cant have any box overlap more than 2 page boundaries.
    Is anyone else having this problem or any other advice on what to try.
    Thank you

    Hi Eugene,
    The document in question is 1) not using master pages and 2) not using spreads. Its a single page A4 document.
    Hi Peter,
    Sorry I am not trying to span two pages. My comment was that the graphic box seems to glitch when it touches more than 2 boundaries of the page ie left right top bottom.
    I am using the full creative suite CS5.5, no hacks, no substitute programs.
    I have attached a few screen captures.
    Sample file in indesign:
    Screen capture when exported to PDF:
    split the background box into 2 (i have used 2 blacks so you can see the boundary). Export to PDF:
    Second example - black background with photo over top. In indesign:
    Exported to PDF:

  • I'm trying to print a pdf I created and posted on my website, it looks good online but is missing data when printed, help.

    I'm trying to print a poster I created and posted on my website, it was created in power point, saved as pdf, and uploaded using wordpress. It looks good online but is missing data when printed. It contains almost all the information except for about 6 lines, which happen to be important. Any thought are appreciated.

    No its weird, everything was the same. I sort of resolved it, since he can view the PDF fine on his comupter but also wanted to print it, I just exported all the slides as JPEGS and made a new InDesign book with those on the pages and exported that as a PDF. Seemed to work for him, I just don't know what happened!

  • Objects missing when exporting to PDF, but show up when printing to PDF

    Hi - I'm working with someone, both of us in InDesign CS4, and she has some documents that cause a few random objects to just go missing when exported to PDF (same on my computer). But when printing to PDF, they show up fine. They also show up fine if we recreate each individual object, but that can end up being a lot of work. She prefers to export to PDF because of quality. I'm drawing a blank on this one!
    The attached file shows the issue. The green blocks just don't want to show up when exporting.

    Peter -
    The links are just the PDFs of the black and white portions and don't really matter too much since they show up fine when exporting or printing to PDF. Our main concern is the green blocks, which are indeed the green areas of the plan you pointed out. They are actually separate objects created directly within InDesign that can be moved and adjusted.
    I just updated to 6.0.4 and that didn't help. I wonder if this may be a variant of the bugs I was reading about with master pages and certain things not showing up when creating PDFs or printing (even though none of these things are on the master page)?
    Thanks

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • Formatting and alignment issues in Crystal Reports when exported to PDF

    Hi Experts,
    When we export the crystal reports 2013 reports to PDF we are facing issues with formatting and alignment. The columns are overlapping and also for some column's data, we are able to see only some parts of text when exported to PDF.
    Data source for these reports is EHP 7 (SAP ECC 6.0), BO 4.1, Crystal reports 2013.
    As these reports are on priority, your help and suggestions are much appreciated.
    Looking forward to hear from you guys.
    Thanks & Regards,
    Vijay.

    Hi Vijay,
    Search for the following in the search bar at the top right of SCN's page:
    ForceLargerFonts
    UsePrecisePositioningForText
    TruncationAdjustment
    All these are registry keys that you might need to apply on the machine.
    -Abhilash

  • Format Changes when Exporting to PDF

    I'm using Crystal 12.0 and have an issue very similar to these threads listed below. 
    While viewing a report on my development machine, all is fine.  I can export to PDF and the formatting is OK. 
    However, when the report is exported to PDF on the web server, the spacing between some of the text is off.  The spacing is used for a CrossTab cell in a "Display String" that I changed using "Format Field."   All that's supposed to happen here is several spaces are used to move the text under the proper column. 
    When exporting to PDF on the web, the text moves over to the left like it's missing some of the spaces.  I wondering if the below threads apply to Crystal 12.0. 
    Thread:1220516 and
    Format Changes when Exporting to PDF
    Thanks kindly for your assistance,
    -Marty

    I'm having a very similar problem using Crystal Reports for Visual Studio 2008. Everything is perfect when running in VS 2008, it takes the report and exports it to PDF format via VB code. The PDF file is idenitcal to the report. However, when run on the server the one page report (when exported to PDF) gets chopped into ten 4x4 chunks. So the PDF file is 10 pages....its like puzzle pieces of the original.
    I've drawn a bunch of lines on the report to look like boxes - perhaps this is causing issues? The font on the report is Arial.
    The server has the 10_5 runtime installed and it is set to the same default printer as the development PC. I have been stuck on this for days and would really appreciate any advice you may have.
    Thanks!
    Edited by: WanderingEye on Sep 18, 2009 4:54 PM

Maybe you are looking for