Hi Monks,

Iam trying to Convert a Visual Basic piece of Code into PERL. The Code connects to Crystal Report and Passes some parameters and runs it and saves it as a excel file. The code works great in Visual BAsic. It works fine in PERL too.The Excel file is created but there seems to be no Data in it. Iam puzzled. I think the problem is in the Way Iam passing values to the parameters.

In Visual BAsic the code for assigning values looks like this.

oParameterField.AddCurrentValue (CDate("01/31/03"))

In Perl the code I have for assigning values is:

$oParameterField->AddCurrentValue("01/31/03") ;

Is there something Iam doing wrong ??

ANy Help is greatly appreciated.

Thanks

Harish

$oParameterField->AddCurrentValue("01/31/03")

edited: Fri May 16 17:13:23 2003 by jeffa - title change (was: Convert Visual Basic Code to PERL)
notice that i did not add code tags this time ;)


In reply to Convert Visual Basic Code to PERL (again) by harish

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.