🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #105034

Re: VB and Crystal Report

#105034
From: Sol Shapiro
Date: Thu, 23 Jul 1998 04:14
50 lines
2629 bytes
On Wed, 22 Jul 1998 14:49:53 -0400, "Jorge V.S."
<jvalen@alefdata.cl> wrote:

These things come back to bite you (OK - I mean me!!).

Crystal Reports ActiveX has an interesting way of handling a
change in the RecordSource.  It insists on reparsing the SQL
with all the " (quotation marks) for each field etc.,

What you'd need to do is to rebuild the SQL statement in the
same format as the initial SQL using the old reliable
Chr$(34) for the quotation mark passing the variable in the
regular way.

I found that this was the only way of changing the
RecordSource of CrystalReports ActiveX - dyanmically !!. (On
one project I spent two weeks debugging all the reports I
built just for that alone; that's why I started with the
wisecrack at the top !).

Hope this helps

Sol.

>Hello:
>
>    I am trying to made a Report with CR and in the CR designer I define
>the report,
>but I don't know how to pass variable values from VB to CR control.
>
>    We need to report all records that the date is a parameter given by
>the final
>user in a special form.
>
>
>                                        thanks in advance
>
>                                                    Jorge V.S.'980722
>
>--
>////////////////////////////////////////////////////////////////////////
>
>//  ALEF DATA S.A.  //
>//  Fn:(562) 695-6600  //  Jorge Valenzuela Sepulveda
>//  Fx:(562) 697-2037  //  Jefe Area de Ingeniería
>//  Agustinas 1141 piso 7. //  jvalen@alefdata.cl
>//  Santiago, Chile  //  alefdata@alefdata.cl
>///////////////////////////////////////////////////////////////////////
>
>
Technical Details
Message-ID: <35b6b74a.20167649@news.pathcom.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!howland.erols.net!feed2.news.erols.com!erols!newsfeed.icanect.net!newsfeed.slurp.net!newsmaster.pathcom.com!not-for-mail
References: <35B63451.2B559106@alefdata.cl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!howland.erols.net!feed2.news.erols.com!erols!newsfeed.icanect.net!newsfeed.slurp.net!newsmaster.pathcom.com!not-for-mail
From: shapiro@pathcom.com (Sol Shapiro)
Newsgroups: alt.comp.lang.visulabasic.ver3,comp.lang.basic.visual.misc,comp.lang.basic.visual.database,cz.comp.lang.basic.visual,es.comp.lenguajes.visual-basic,fj.lang.visualbasic,it.comp.lang.visual-basic,japan.comp.lang.visual-basic,microsoft.public.usasalesinfo.developer.visualbasic,pl.comp.lang.vbasic
Subject: Re: VB and Crystal Report
Date: Thu, 23 Jul 1998 04:14:17 GMT
Organization: Small Business Computer Solutions
Lines: 51
Message-ID: <35b6b74a.20167649@news.pathcom.com>
References: <35B63451.2B559106@alefdata.cl>
Reply-To: Sol Shapiro <shapiro@pathcom.com>
NNTP-Posting-Host: ts41l31.pathcom.com
X-Newsreader: Forte Free Agent 1.11/32.235
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit