[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Looking for a charting library in Ruby...

Tom Copeland

10/3/2003 7:14:00 PM

> -----Original Message-----
> From: Bermejo, Rodrigo [mailto:rodrigo.bermejo@ps.ge.com]
> >http://raa.ruby-lang.org/list.rhtml?name=ru...
> >
> >Is this what folks are using?
> >
>
> I have been using it for a while and it has fit all my requirements.
> I have created my own class to save some typing.(Attached).

Very nice, thanks!

Tom


4 Answers

Klaas Deforche

1/7/2010 11:15:00 AM

0

Hi,

Try using single quotes, like in the next example:
static void klForTestStringQuotes(Args _args)
{
str s;
;

s= 'attachment; filename="blah.pdf"';

info(s);
}

Best regards,
Klaas.
----------------
http://www.artofc...


"Ebbe Jensen" wrote:

> Hi Klaas.
>
> Thank you for your answer. Yes, I wish to recreate the code in X++. More
> specifically I think I have a problem writing this line in X++:
>
> "attachment; filename=""blah.pdf"""
>
> I believe the reason is all the double quotes in the string that I'm
> handling wrong in my call to the CDO.Message object.
>
> "Klaas Deforche" wrote:
>
> > Hi Ebbe,
> >
> > Do you want to recreate this code in x++?
> > Then you can wrap the dubble quotes in single quotes:
> > str s = '"your string"';
> >
> > Hope this helps (and works).
> >
> > Best regards,
> > Klaas.
> > ----------------
> > http://www.artofc...
> >
> >
> > "Ebbe Jensen" wrote:
> >
> > > Hello Group.
> > >
> > > I have problems passing a special string to a com method. I would like to
> > > write/implement the following .Net sample into DAX 4.0:
> > >
> > > Set iMsg = CreateObject("CDO.Message")
> > >
> > > With iMsg
> > > .AddAttachment "<your file here>"
> > > .attachments(1).fields("urn:schemas:mailheader:content-disposition") =
> > > "attachment; filename=""blah.pdf"""
> > > .attachments(1).fields.update()
> > > End With
> > >
> > > I have problems having the com object accepting the double quotes. I have
> > > been trying using the backslash char in front of the double quotes. Any
> > > suggestions?
> > >
> > > All the best, Ebbe

Ebbe Jensen

1/8/2010 8:58:00 AM

0

Hi again,

If I use singlequotes surrounding the double quotes(as you mentioned in your
first suggestion) I looks like I'm passing a correct string when I debug
Dynamics. Now I "only" need to find out why the com-object isnt reacting on
my call :)

Thanks, Ebbe

"Klaas Deforche" wrote:

> Hi,
>
> Try using single quotes, like in the next example:
> static void klForTestStringQuotes(Args _args)
> {
> str s;
> ;
>
> s= 'attachment; filename="blah.pdf"';
>
> info(s);
> }
>
> Best regards,
> Klaas.
> ----------------
> http://www.artofc...
>
>
> "Ebbe Jensen" wrote:
>
> > Hi Klaas.
> >
> > Thank you for your answer. Yes, I wish to recreate the code in X++. More
> > specifically I think I have a problem writing this line in X++:
> >
> > "attachment; filename=""blah.pdf"""
> >
> > I believe the reason is all the double quotes in the string that I'm
> > handling wrong in my call to the CDO.Message object.
> >
> > "Klaas Deforche" wrote:
> >
> > > Hi Ebbe,
> > >
> > > Do you want to recreate this code in x++?
> > > Then you can wrap the dubble quotes in single quotes:
> > > str s = '"your string"';
> > >
> > > Hope this helps (and works).
> > >
> > > Best regards,
> > > Klaas.
> > > ----------------
> > > http://www.artofc...
> > >
> > >
> > > "Ebbe Jensen" wrote:
> > >
> > > > Hello Group.
> > > >
> > > > I have problems passing a special string to a com method. I would like to
> > > > write/implement the following .Net sample into DAX 4.0:
> > > >
> > > > Set iMsg = CreateObject("CDO.Message")
> > > >
> > > > With iMsg
> > > > .AddAttachment "<your file here>"
> > > > .attachments(1).fields("urn:schemas:mailheader:content-disposition") =
> > > > "attachment; filename=""blah.pdf"""
> > > > .attachments(1).fields.update()
> > > > End With
> > > >
> > > > I have problems having the com object accepting the double quotes. I have
> > > > been trying using the backslash char in front of the double quotes. Any
> > > > suggestions?
> > > >
> > > > All the best, Ebbe

Klaas Deforche

1/8/2010 9:46:00 AM

0

Hi,

Sorry for the double post.
You could also try removing the space in the string, or placing
@'yourstring', but I'm not sure it'll help.

I assume you are trying to send an email?
You may have allready done that, but take a look at the sysMailer class,
that class contains all the functionality for emailing in Ax.

If you're looking to rename an attachement, the method I used once was to
rename the file on the filesystem before it was added to the attachments, and
then add the renamed file to the email.
That was in the Info/reportSendMail() method.

Best regards,
Klaas.
----------------
http://www.artofc...


"Ebbe Jensen" wrote:

> Hi again,
>
> If I use singlequotes surrounding the double quotes(as you mentioned in your
> first suggestion) I looks like I'm passing a correct string when I debug
> Dynamics. Now I "only" need to find out why the com-object isnt reacting on
> my call :)
>
> Thanks, Ebbe

Ebbe Jensen

1/8/2010 10:47:00 AM

0

Hi Klaas.

Found the solution: Send the string simply like this. 'attachment;
filename=blah.pdf'. No double quotes aound the filename are needed what so
ever.

Yes, I wish to rename an attached file in an email. In order to avoid file
complications in the filesystem, I wish to change the filename in the email
itself.

Thanks for your effort and time used on this issue :)

Best regards, Ebbe

"Klaas Deforche" wrote:

> Hi,
>
> Sorry for the double post.
> You could also try removing the space in the string, or placing
> @'yourstring', but I'm not sure it'll help.
>
> I assume you are trying to send an email?
> You may have allready done that, but take a look at the sysMailer class,
> that class contains all the functionality for emailing in Ax.
>
> If you're looking to rename an attachement, the method I used once was to
> rename the file on the filesystem before it was added to the attachments, and
> then add the renamed file to the email.
> That was in the Info/reportSendMail() method.
>
> Best regards,
> Klaas.
> ----------------
> http://www.artofc...
>
>
> "Ebbe Jensen" wrote:
>
> > Hi again,
> >
> > If I use singlequotes surrounding the double quotes(as you mentioned in your
> > first suggestion) I looks like I'm passing a correct string when I debug
> > Dynamics. Now I "only" need to find out why the com-object isnt reacting on
> > my call :)
> >
> > Thanks, Ebbe