File does not begin with %pdf-

Posted on 2009-02-17
Last Modified: 2012-05-06
I am getting this error when i open an rpt file as  pdf format using inet crystal clear tool.

Please help me ......thanks a lotttt....

			database = "CTL_eTimeSheet";

			orientation = "default_Orientation=2";

			papersize ="default_PaperSize=1";



			reporturl = "../crystal/etimesheet/"; 

			reportaddress1 =reporturl+"etsweeklypreview.rpt?"+dll+"&"+prompt1+"&"+prompt2+"&"+"database="+database+"&";

			reportaddress2 = orientation+"&"+papersize+"&init=pdf";

			reportaddress = reportaddress1+reportaddress2;

			location.href = reportaddress;

Open in new window

Question by:czutshi
    LVL 5

    Accepted Solution

    Well, it is clear that it expects to see .PDF file here, %pdf is a marker of beginning of PDF document. SO most likely you cannot feed .rpt file this way.

    Author Comment

    I'm getting this error only for two files and rest of the files are openning in pdf format.
    LVL 5

    Assisted Solution

    And ofcourse Acrobat reader can open it, right?

    Author Comment

    Yes. All files are openning in the Acrobat reader still.... two files are not openning and displaying the error....I dunno what to do to solve the issue.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now