Printing to PDF from CrystalReportViewing returns blank page

Hi All,
   I have a web report that I run. When the report generates in the CrystalReportViewer I see my results. However, if I click the button to Print to PDF, it results in a PDF with no data. If I click on the Next button as well to go to the next page in my report, it returns blank results.
This apparently started happening when I used date parameters being passed to my stored procedure:
        parameterField = report.ParameterFields("@callstdate")
        parameterField2 = report.ParameterFields("@callendate")
I'm using VS 2008 and CR2008.
Any ideas why this is happening?
Thank you in advance,

1)Any export type I use returns no data on the exported report
2)Changed PDF to ActiveX and it printed the report with no data
3)Remove parameters from my webapp and let the Viewer prompt for them. Now PDF works and everything else.
Here's my code:
    Protected Sub display_report()
        parameterField.CurrentValues.Clear()
        parameterField2.CurrentValues.Clear()
        parameterField3.CurrentValues.Clear()
        CrystalReportViewer2.ParameterFieldInfo.Clear()
        parameterField = report.ParameterFields("@callstdate")
        parameterField2 = report.ParameterFields("@callendate")
        parameterField3 = report.ParameterFields("Group")
        For Each li As ListItem In Me.ListBox1.Items
            If li.Selected = True Then
                ' Add all parameters value here
                parameterField3.CurrentValues.AddValue(li.Value)
            End If
        Next
        report.SetParameterValue("@callstdate", CDate(st_date.Text))
        report.SetParameterValue("@callendate", CDate(st_date.Text))
        CrystalReportViewer2.ReportSource = report
    End Sub

Similar Messages

  • IE locks when printing to pdf from a web-based page or pdf

    Acrobat 7 standard. IE 6 on XPPro64. It is a 64 bit machine and so printer drivers had to be obtained for 64 bit. When I try to print to "Adobe pdf", the current page out of a 200 page catalog being viewed online, IE locks up and the print job in the queue is unresponsive. It does this no mayyer the site or file being printed from. Other than this, Acrobat seems to work on on the 64 bit machine. Same thing if the page isn't a pdf but an ordinary html page. Printing to pdf hangs no matter what. Is this a known bug for 64 bit? It's at work, and the IT dept loves to mess with things, lock things etc, but I can't think how it could be related to that.

    I think that the earliest version that has successfully run under X64 is AA8.1.2. I think that AA7 will not work on X64 as I recall the various reports of attempts by others to do that.

  • Running Powershell command from PHP returns blank page

    Hi. :-)
    I have this script :
    <?php
    $q = shell_exec('powershell Get-Help');
    echo $q;
    ?>
    This works well and gives me output.
    But... When I change Get-Help with Get-VM it gives me blank page as ouput. I have simillar problems with other Hyper-V cmdlets.
    This is code 1:
    <?php
    $q = shell_exec('powershell Get-VM');
    echo $q;
    ?>
    This code gives me blank page.
    Code 2:
    <?php
    $q = shell_exec('powershell Start-VM 'Vm1'');
    echo $q;
    ?>
    This code gives me that it cannot find VM with that name.
    What's the problem, what to change in script or system settings.
    Note: All this commands WORK and gives me output when I run it from cmd
    Things that I did:
     1. Changed execution policy to Unrestricted
     2. Added 2<&1 at the end of shell_exec.
    Thanks in advance.

    Hi,
    I think we should run powershell as adminitrator to get VMs.
    Start-Process "$psHome\powershell.exe" -Verb Runas -ArgumentList '-command "Get-VM"'
    Regards,
    Yan Li
    Regards, Yan Li

  • Print multiple pdf from web site

    Hello everyone!!,
    I need print multiple pdf from web site (web page) to the local printer o client printer.
    I have investigated : cfexecuted, java code, javascript, but i can't do it.
    The idea is don´t open printer dialog box for to print.
    Thanks.

    It is NOT POSSIBLE (for security reasons) to do silent printing in this way.  (you wouldn't want to visit a web site and have your printer start spewing out page after page of profanity, would you??)
    You can, however, offer the user the choice to print and then have it print.  That can easily be done by embedding JavaScript into the PDF to be printed.  If you have multiple documents, you should merge them together on the server first and then send a single document.

  • Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed

    We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
    For AIR : I tried the thread Re: AIR and PDF showing/silent printing

    Hey CodeMonkey & Ross,
    Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
    Thanks guys,
    Lox

  • I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected

    I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected - I have uploaded the latest version of Adobe with no luck and have never had this issue before !

    Hi bengaunt ,
    Thank you for posting on the Adobe forums, you can try printing as an image.
    Open the file>Print>advanced>check the box "print as an image" OK
    Thanks,
    Vikrantt Singh

  • When printing to PDF from webpage, the pdf is compressed on the bottom of each page and markedly smaller print. How do I correct this?

    When printing to PDF from webpage, the pdf is compressed on the bottom of each page and with markedly smaller print, the top of the page is fine. How do I correct this?

    Open Contacts and click Preferences on the menu named Contacts. On the General tab of the Preferences window, select Show First Name: Before Last Name and then print. You can change that Preference back to the other way after printing if desired.

  • Printing a PDF from a PDF generates a log file

    I have pdfs that get generated from a web site and for whatever reason when I go to print them to pdf I just get a log file. I can print to pdf from any other pdf file. I need to do this so that it basically flattens the pdf and the end user can't see where I have typed or added a text box to blank out stuff.
    I've tried examining the doc and stripping it of everything.
    I've tried making it compatible with Acrobat 8 v1.7
    I've tried opening in Acrobat STD, no security set and resave and yet when I open it backup the minimal security settings are back.
    I have acrobat 8 std, and reader 8. The original pdf was v1.3, produced apparently from the web site with GPL Ghostscript 8.15, everything is allow in security except doc assembly, commenting, signing, creation of template pages.
    Any help anyone can give would be greatly appreciated.
    Thank you,
    George
    Here is part of the error log:
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    %%[Page: 3]%%
    %%[ Error: limitcheck; OffendingCommand: ;#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#23 23#2323#2323#2323#2323#2323#2323#2323#; ErrorInfo: DictCRC --nostringval-- ]%%
    Stack:
    58
    [/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /;#2323#2323#2323 /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef
    /;#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323

    There is one on the fonts tab of the settings. This one is for problems with embedding and says to create the PDF anyway. Font embedding with unlicensed fonts is a common problem for failure in the creation process and that is why I was suggesting it. Also, your discussion of security raises a flag. It suggests that there is some security setting and that may be the issue.

  • I am trying to create a print ready PDF from a word file with unacceptable results.

    I am trying to create a print ready PDF from a word file with unacceptable results.
    The word file has a trim size of 6” x 9”. It has been set to mirror margins with the inner, top and bottom margins set to 0.75”, the outer margin is set to 0.5” and the gutter to 0.14”.
    It doesn’t matter if I create the PDF from inside Word, or open Acrobat Pro 11.0.9 and click Create From File, while the resulting document size is correct and the odd numbered pages reflect the correct margins, the even numbered pages do not. This results in some text near the outer margin, as well as the page numbers being omitted.
    Does anyone know how to correct this?
    I just noticed that some of the odd numbered pages' text is also cropped. Apparently Acrobat is refusing to set side margins to smaller than 1" (@ 3cm).

    I'm away from my printer, so I'll try it later. Even so, the proposed test is irrelevant. I operate a small publishing house and am trying to upload certain novels to Ingram, the largest book distributor in the world. The specifications I've set are the specifications they've asked for. Since they've said that the results I'm obtaining are unacceptable, and since they demand submission in PDF form, this renders Acrobat Pro for Mac completely unacceptable for anyone in the publication industry. As far as I can tell, Adobe has a serious bug here that it needs to fix—and at once.

  • My Mac won't print a pdf from the web

    My iMac will not print any pdf from the web. The printer (an ho Photosmart plus) will only print a blank shet of paper.

    Try saving the file then, then open Preview and open the file and try printing again. If if the quality is still bad then it's the file itself.

  • On MacBook Pro unable to print webpage; I get a single blank page. But I can print using Safari. Started last week while using Firefox 3.6. I downloaded Firefox 5.0--same problem.

    On MacBook Pro unable to print webpage; I get a single blank page. But I can print using Safari. Started last week while using Firefox 3.6. I downloaded Firefox 5.0--same problem.

    I am now able to do live broadcasts with my i-sight, but my original problem still exisits....
    Unsolved Problem:I need to be able to broadcast from CamTwist as CamTwist is the only program that will allow me to do what I need to do.   Justin.tv and Ustream.tv do not recognize CamTwist for reasons I can not explain.

  • Unable to print to pdf from any of my applications

    Hello,
    I am running Acrobat 8.0 on windows 7. Toshiba Qosmio 64 bit. I am unable to print to pdf from any of my applications. Office, Mozilla, Lotus 1-2-3 and others. When I choose the print option. And from the drop down menu choose Adobe PDF as the printer. And when I click to continue I get the little metered bar showing it's working, but then I get an error in the printer que. I don't even get an option what to save it as or where to save it to. It just goes straight to the metered bar showing its working. And it does this for all my programs where I can print to pdf. Can anyone help me? Also, this is a student version. Could the student version be unable to do this?
    Thank you,
    JimmyJoney

    Although Acrobat 8 is not supported on Win 7, you can try a few things. First, apply all updates to Acrobat 8. If this doesn't help, check to make sure that the PDF port was created. If not, you can try:
    Open Control Panel, select Printers
    * Click Add a Printer
    * Click Add a local printer
    * Select Use an existing port (should be preselected), change the port to "Desktop \*.pdf (Adobe PDF Port), click Next
    * On the next page, click Have Disk...
    * Click Browse and browse to C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Xtras\AdobePDF (or wherever you have Acrobat installed), click OK.
    * It should now show a series of "Adobe PDF Converter" entries. Select the first one and click Next
    * Change the printer name if desired, uncheck the box to use it as a default printer, click Next
    * Do not print a test page, click Finish
    * Find your new printer in Printers. Right click on it and select Properties, Advanced
    * Click "Print directly to the printer", click OK
    These last steps are detailed in the following discussion.

  • Printing to PDF from Microsoft Word 2004?

    Greetings,
    I'm in the process of completing my masters thesis and am in need of some assistance. The guidelines for my thesis state that title pages must have a 2-inch top margin and 1-inch bottom margin. When I print to paper from Microsoft Word, everything looks great. When I print to PDF from MS Word, the 2-inch top margin changes to 2 & 3/16-inch and the bottom margin cahnges from 1-inch to 1 & 3/8 inch. Is there a reason why this is happening and is there a way to correct this? I don't want to have to go out and purchase Abobe Acrobat Pro just to print this thesis according to the graduate school guidelines.
    Sincerely,
    JBelair

    Hi rememdy111,
    Please see this post: Print to Pdf, where I've answered your question.
    Please don't hesitate to ask if you have additional questions.
    Best,
    Sara

  • Unable to print to pdf from a pdf

    We're having a issue where we're unable to print to pdf from a pdf with acrobat 9 std, so far a 64bit machine. We get the following errors
    "the document could not be printed"
    "there were no pages selected to print"
    We see the issue with all pdfs. Acrobat 7 std works fine, as does printing to pdf from other applications with 9 std. So far it only effects acrobat 9 std. We've repaired the installation and updated to the latest. We do have however only see this with one machine, but we haven't looked past this one machine yet...Any ideas?
    thanks all,
    cg

    XP pro 64bit. Just updated to 9.3.3, still have the error being thrown.
    The user fills in a form from our intranet and then prints it with the adobe printer creating the illusion that its write protected. I'm not one to stop them, given the forms are low value and all. Possibly if the process is uncomplicated (that's key here) then saving the document to the desktop and making the change and write protecting it there before transmittal might be an alternative, as long as it doesn't rely on passwords and keys...
    Sorry I'm an adobe noob.
    thanks,
    cg

  • Text getting cut off when printing to PDF from Excel

    Hello,
         I've seen a lot related to this subject but nothing that shows a real solution.
         Using Excel 2003-sp3 and Adobe Acrobat v.9 Standard, the right half of the last character in the string gets cut off. It prints from excel fine.
         It's not always the text that is the right-most on the page either. An affected PDF file is attached - note the cut off "S" on the last line (NET ASSETS OF GOVERNMENTAL ACTIVITIES).
         Any assistance is appreciated.
    Thanks,
    Kevin Murphy

    please delete me from your mailing list.  tks.
    Date: Wed, 10 Feb 2010 11:20:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Text getting cut off when printing to PDF from Excel
    Hello,
         I've seen a lot related to this subject but nothing that shows a real solution.
         Using Excel 2003-sp3 and Adobe Acrobat v.9 Standard, the right half of the last character in the string gets cut off. It prints from excel fine.
         It's not always the text that is the right-most on the page either. An affected PDF file is attached - note the cut off "S" on the last line (NET ASSETS OF GOVERNMENTAL ACTIVITIES).
         Any assistance is appreciated.
    Thanks,
    Kevin Murphy
    >

Maybe you are looking for

  • What's is the best way to use iPhoto? I need to understand.

    What's is the best way to use iPhoto? I need to understand. I guess the iPhoto is only for people with 5,000 of personal photos. Or even 200,000, but they can't use this app everyday. I'm not talk about working as a photographer. They use Aperture. T

  • HT201412 My computer is frozen with my iPod plugged in trying to sync. How can I eject it safely?

    My computer is frozen and my iPod is plugged in, trying to sync. I can't eject my iPod with a frozen laptop. Any suggestions on how to unplug it without losing all my music?

  • Module pool Program table control

    Hi,     In Module pool programming, table control i have 10 items out of which in the same colum i want to put them in edit mode and certain in disply mode. Regards

  • Script editor ICM 6 - "...don't own the script lock"

    I'm running UCCE 6 (ICM 6.0) and I just installed the ICM Internet Script Editor on my computer. When I try to save changes to a script I get the following error: "You can not update the script because you don't own the script lock" When I open the s

  • Aperture 3 import of old library

    After spending 3 hours on the import of the Aperture 2 library (you can't convert in the trial, and there was no upgrade download option online so I ordered the disc) I discovered that it had not imported any folders within projects. Is this normal?