<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Data Access Worldwide Forums - Visual Report Writer</title>
		<link>http://support.dataaccess.com/Forums/</link>
		<description>A new general purpose tool for building stand-alone reports from DataFlex and SQL data sources; developers can create and integrate reports in Visual DataFlex applications.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 20:57:38 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://support.dataaccess.com/Forums/images/misc/rss.png</url>
			<title>Data Access Worldwide Forums - Visual Report Writer</title>
			<link>http://support.dataaccess.com/Forums/</link>
		</image>
		<item>
			<title>Conversion to Stored Procedures</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50792-Conversion-to-Stored-Procedures&amp;goto=newpost</link>
			<pubDate>Sat, 15 Jun 2013 02:03:27 GMT</pubDate>
			<description>I believe VRW 3.0 is maturing into a product worthy of purchase and I have made up my mind to start converting reports ready for purchase when...</description>
			<content:encoded><![CDATA[<div>I believe VRW 3.0 is maturing into a product worthy of purchase and I have made up my mind to start converting reports ready for purchase when released.<br />
The main thing that is missing is the ability to email directly from within VRW rather than the VDF code. Not huge but it would be nice. <br />
<br />
I tried creating some simple stored procedure reports and they all worked fine other than i have some minor understanding points.<br />
<br />
1. Using an RDS example as a base whereby a had a category table with category code and description and a second table for account codes that had an Account Code, Description and category code. The two RDS tables were linked and grouped by category code. I could not see how to have multiple result sets to achieve something similar. I can report with one result sets with repetitive category into for each account is not very efficient or normalised. Is there a simple way using stored procedures to achieve what i want.<br />
<br />
2. I had a number of RDS test reports in v 2.1. and i tried changing the database source to stored procedures. The wizard all works fine up to the point that it wants to map the existing rds tables to the stored procedure. I could not see how to latch onto the stored procedure at that point. Is it possible to convert from RDS to stored procedure ODBC and if so does multiple RDS tables present a problem.<br />
<br />
It would be fair to say i am feeling my way with Stored Procedures.</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Russell McDougall</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50792-Conversion-to-Stored-Procedures</guid>
		</item>
		<item>
			<title>Standard key combinations</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50753-Standard-key-combinations&amp;goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 08:10:33 GMT</pubDate>
			<description><![CDATA[Why are the common key combinations in VDF not existant in VRW? 
 
I'm thinking of Cntrl + S etc. 
 
Plus nudge would be nice. It's not a key...]]></description>
			<content:encoded><![CDATA[<div>Why are the common key combinations in VDF not existant in VRW?<br />
<br />
I'm thinking of Cntrl + S etc.<br />
<br />
Plus nudge would be nice. It's not a key combination but it annoys me.<br />
<br />
It's REALLY annoying having those missing... well to me anyway.</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>kelly</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50753-Standard-key-combinations</guid>
		</item>
		<item>
			<title>Embed fonts option in VRW 2.1 Export to PDF</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50751-Embed-fonts-option-in-VRW-2.1-Export-to-PDF&amp;goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 03:28:42 GMT</pubDate>
			<description><![CDATA[I have barcodes, and some odd fonts in my report, and when I email copies of the pdf to customers, the barcodes don't always print.  This is usually...]]></description>
			<content:encoded><![CDATA[<div>I have barcodes, and some odd fonts in my report, and when I email copies of the pdf to customers, the barcodes don't always print.  This is usually handled in PDF by forcing the option to embed the fonts. Can I turn this on in VRW2.1? if so, how?</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Michael Mullan</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50751-Embed-fonts-option-in-VRW-2.1-Export-to-PDF</guid>
		</item>
		<item>
			<title>Stored procedure example</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50737-Stored-procedure-example&amp;goto=newpost</link>
			<pubDate>Mon, 10 Jun 2013 10:08:06 GMT</pubDate>
			<description>I wonder if there is one?If not could I suggest a simple blog entry showing order entry invoices grouped by customer.At the last DDUG it was a...</description>
			<content:encoded><![CDATA[<div>I wonder if there is one?If not could I suggest a simple blog entry showing order entry invoices grouped by customer.At the last DDUG it was a question that was asked that seemed to be a sticking point whereby a lack of known example prevented migration from &quot;that other&quot; widely used report generator.BTW good vrw blogs recently. They are very helpful.</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Russell McDougall</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50737-Stored-procedure-example</guid>
		</item>
		<item>
			<title><![CDATA[Error 4200 Incorrect Syntax in ')]]></title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50734-Error-4200-Incorrect-Syntax-in-)&amp;goto=newpost</link>
			<pubDate>Sun, 09 Jun 2013 06:52:04 GMT</pubDate>
			<description><![CDATA[Hi Daw, 
 
VRW3A2 
 
I'm running a report against the database from a client on MSSQL10. The database contains 4962 tables (don't ask me why.....) 
...]]></description>
			<content:encoded><![CDATA[<div>Hi Daw,<br />
<br />
VRW3A2<br />
<br />
I'm running a report against the database from a client on MSSQL10. The database contains 4962 tables (don't ask me why.....)<br />
<br />
Creating a report i getting an error message 4200 'Incorrect syntax' <br />
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6526"  title="Name:  
Views: 
Size:  ">Attachment 6526</a><br />
<br />
I did not code anything.... just used the database-expert.<br />
<br />
PS With this numbers of files the opening time is unworkably slow (open en re-opening again and again because of being modeldialog). YAFR. Make it non-model so that can be switched between design, preview and database-expert<br />
<br />
The model looks like this.<br />
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6527"  title="Name:  
Views: 
Size:  ">Attachment 6527</a><br />
<br />
The report is pretty basic... <br />
<br />
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6528"  title="Name:  
Views: 
Size:  ">Attachment 6528</a><br />
<br />
Any Ideas where to look for an answer for the error message<br />
<br />
Roel</div>


	<div style="padding:10px">

	
		<fieldset class="fieldset">
			<legend>Attached Thumbnails</legend>
			<div style="padding:10px">
			
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6526&amp;d=1370760303" 
rel="Lightbox_257628" id="attachment6526"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6526&amp;stc=1&amp;thumb=1&amp;d=1370760303" 
alt="Click image for larger version

Name:	20130608.Error4200.IncorrectSyntax.jpg&lrm;
Views:	N/A
Size:	76.6 KB
ID:	6526"/></a>
&nbsp;
 
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6527&amp;d=1370760539" 
rel="Lightbox_257628" id="attachment6527"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6527&amp;stc=1&amp;thumb=1&amp;d=1370760539" 
alt="Click image for larger version

Name:	20130608.Error4200.DataModel.jpg&lrm;
Views:	N/A
Size:	289.2 KB
ID:	6527"/></a>
&nbsp;
 
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6528&amp;d=1370760654" 
rel="Lightbox_257628" id="attachment6528"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6528&amp;stc=1&amp;thumb=1&amp;d=1370760654" 
alt="Click image for larger version

Name:	20130608.Error4200.Report.jpg&lrm;
Views:	N/A
Size:	111.7 KB
ID:	6528"/></a>
&nbsp;
 
			</div>
		</fieldset>
	

	

	

	

	</div>
 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator><![CDATA[Roel Westhoff [W4]]]></dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50734-Error-4200-Incorrect-Syntax-in-)</guid>
		</item>
		<item>
			<title>Export to XLS 3.0 Alpha II</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50718-Export-to-XLS-3.0-Alpha-II&amp;goto=newpost</link>
			<pubDate>Fri, 07 Jun 2013 03:00:52 GMT</pubDate>
			<description>Preview any VRW report to screen. 
Export XLS from menu icon  - (any version of XLS) 
 
This produces this error 
 
Unknown (0x00000000) at address...</description>
			<content:encoded><![CDATA[<div>Preview any VRW report to screen.<br />
Export XLS from menu icon  - (any version of XLS)<br />
<br />
This produces this error<br />
<br />
Unknown (0x00000000) at address 0x77D4016E<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">// Export the report<br />
&nbsp; &nbsp; Procedure ComReportExport String llsId C_vrwExportFormats lliType String llFileName<br />
&nbsp; &nbsp; &nbsp; &nbsp; Handle hDispatchDriver<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get phDispatchDriver to hDispatchDriver<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send PrepareParams to hDispatchDriver 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send DefineParam to hDispatchDriver OLE_VT_BSTR llsId<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send DefineParam to hDispatchDriver OLE_VT_I4 lliType<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send DefineParam to hDispatchDriver OLE_VT_BSTR llFileName<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send InvokeComMethod to hDispatchDriver 7 OLE_VT_VOID &lt;&lt;&lt; Errors here<br />
&nbsp; &nbsp; End_Procedure</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Russell McDougall</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50718-Export-to-XLS-3.0-Alpha-II</guid>
		</item>
		<item>
			<title>PSFunction - Not Changing</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50700-PSFunction-Not-Changing&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 21:20:05 GMT</pubDate>
			<description><![CDATA[Alpha II 
In an experimental RDS VRW report i have a function named "Report Header" with the value Return 'Report Header Test' 
 
In the VrwReport...]]></description>
			<content:encoded><![CDATA[<div>Alpha II<br />
In an experimental RDS VRW report i have a function named &quot;Report Header&quot; with the value Return 'Report Header Test'<br />
<br />
In the VrwReport section i have a procedure to get and set function values.<br />
<br />
Get PSFunction &quot;Report Header&quot; result = 'Report Header Starting Value'<br />
Set PSFunction &quot;Report Header&quot; &quot;Return 'Report Header Client name'&quot;<br />
Get PSFunction &quot;Report Header&quot; result = 'Report Header Client name'<br />
<br />
All looks well at this point.<br />
<br />
But when report continues and is shown in previewer the &quot;Report Header&quot; function displays as &quot;Report Header Starting Value&quot;<br />
<br />
I traced psFunction ad it processes without any errors.<br />
The same experimental report in 2.1 displayed 'Report Header Client name'<br />
<br />
This happens to any function i attempt to update via psFunction.<br />
<br />
<br />
<br />
<br />
I</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Russell McDougall</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50700-PSFunction-Not-Changing</guid>
		</item>
		<item>
			<title>CancelReport</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50693-CancelReport&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 12:52:49 GMT</pubDate>
			<description>Hi 
 
VRW 2.1 
 
Is the CancelReport method (called from Close_Panel of cVRWPreview class) the best way to intercept the close of the preview? 
...</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
VRW 2.1<br />
<br />
Is the CancelReport method (called from Close_Panel of cVRWPreview class) the best way to intercept the close of the preview?<br />
<br />
Thanks</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Clayton</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50693-CancelReport</guid>
		</item>
		<item>
			<title>Error 42000 - A column have been specified more than once - VRW3A2</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50691-Error-42000-A-column-have-been-specified-more-than-once-VRW3A2&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 05:16:26 GMT</pubDate>
			<description>Hi DAW, 
 
Created a small report with VRW based on a workspace with MSSQL (MSSQL2008R2 Express/32). 
Attached an overview...</description>
			<content:encoded><![CDATA[<div>Hi DAW,<br />
<br />
Created a small report with VRW based on a workspace with MSSQL (MSSQL2008R2 Express/32).<br />
Attached an overview <a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6503"  title="Name:  
Views: 
Size:  ">Attachment 6503</a><br />
The report runs perfectly in VRW <br />
<br />
When attached to an app and run the application i get the below messages<br />
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6504"  title="Name:  
Views: 
Size:  ">Attachment 6504</a><a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6505"  title="Name:  
Views: 
Size:  ">Attachment 6505</a><br />
<br />
<br />
Q1: Where does this problem come from (it is the only reports in the app). Is it a bug?<br />
Q2: Is there documentation available on error messages?<br />
<br />
Tia<br />
Roel</div>


	<div style="padding:10px">

	
		<fieldset class="fieldset">
			<legend>Attached Thumbnails</legend>
			<div style="padding:10px">
			
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6503&amp;d=1370322677" 
rel="Lightbox_257373" id="attachment6503"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6503&amp;stc=1&amp;thumb=1&amp;d=1370322677" 
alt="Click image for larger version

Name:	20130605.DetailsPVWReport.jpg&lrm;
Views:	N/A
Size:	65.6 KB
ID:	6503"/></a>
&nbsp;
 
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6504&amp;d=1370322872" 
rel="Lightbox_257373" id="attachment6504"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6504&amp;stc=1&amp;thumb=1&amp;d=1370322872" 
alt="Click image for larger version

Name:	20130604.AColumnHasBeenSpecifiedMore.jpg&lrm;
Views:	N/A
Size:	98.3 KB
ID:	6504"/></a>
&nbsp;
 
<a href="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6505&amp;d=1370322874" 
rel="Lightbox_257373" id="attachment6505"
><img class="thumbnail" src="http://support.dataaccess.com/Forums/attachment.php?attachmentid=6505&amp;stc=1&amp;thumb=1&amp;d=1370322874" 
alt="Click image for larger version

Name:	20130605.TheReportCouldNotBeGenerated.jpg&lrm;
Views:	N/A
Size:	67.2 KB
ID:	6505"/></a>
&nbsp;
 
			</div>
		</fieldset>
	

	

	

	

	</div>
 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator><![CDATA[Roel Westhoff [W4]]]></dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50691-Error-42000-A-column-have-been-specified-more-than-once-VRW3A2</guid>
		</item>
		<item>
			<title>Changing the database connection</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50678-Changing-the-database-connection&amp;goto=newpost</link>
			<pubDate>Fri, 31 May 2013 17:48:24 GMT</pubDate>
			<description>Hi, 
 
I do not understand why this does not work.  I have created the following subclass: 
 
 
Code: 
--------- 
Class cCompVRWReport is a...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I do not understand why this does not work.  I have created the following subclass:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Class cCompVRWReport is a cVRWReport<br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp;  Procedure Construct_Object<br />
&nbsp; &nbsp; &nbsp; &nbsp; Forward Send Construct_Object<br />
&nbsp; &nbsp;  End_Procedure<br />
<br />
&nbsp; &nbsp; Procedure SetReportName String sReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sDir&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Set pbAutoLocateDFFiles to False<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //ToDo:&nbsp; fix this<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get ConstantPath of (oConstants(oMain(Self))) &quot;ReportPath&quot; to sDir<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Move &quot;C:\VDF2012_Develop\Databases\VDRReports\&quot; to sDir<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psReportName to (sDir+sReport)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End_Procedure<br />
<br />
&nbsp; &nbsp; Procedure OnProgressRecordsRead Integer iRecords<br />
&nbsp; &nbsp; &nbsp; &nbsp; Handle hoStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; Boolean bShowStatusPanel<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Forward Send OnProgressRecordsRead iRecords<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get pbShowStatusPanel to bShowStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get phoStatusPanel to hoStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (bShowStatusPanel and hoStatusPanel &lt;&gt; 0) Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send SetStatusText of hoStatusPanel (SFormat (&quot;Records read: %1&quot;, iRecords))<br />
&nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; End_Procedure<br />
<br />
&nbsp; &nbsp; Procedure OnProgressFormatPage Integer iPage Integer iTotalPages<br />
&nbsp; &nbsp; &nbsp; &nbsp; Handle hoStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; Boolean bShowStatusPanel<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Forward Send OnProgressFormatPage iPage iTotalPages<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get pbShowStatusPanel to bShowStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get phoStatusPanel to hoStatusPanel<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (bShowStatusPanel and hoStatusPanel &lt;&gt; 0) Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (iTotalPages &lt;&gt; -1) Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send SetStatusText of hoStatusPanel (SFormat (&quot;Formatting page %1 of %2 pages&quot;, iPage, iTotalPages))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send SetStatusText of hoStatusPanel (SFormat (&quot;Formatting page %1&quot;, iPage))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; End_Procedure&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; // Activate the code inside this method if you want to change the database connection<br />
&nbsp; &nbsp; Procedure ChangeODBCDataSource String sReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sConnectionString sDSN sSubReportId sTest<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sUserName sPassword <br />
&nbsp; &nbsp; &nbsp; &nbsp; Integer iSubReports iSubReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psDatabase of oLogin to sDSN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psUsername of oLogin to sUserName<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psPassword of oLogin to sPassword&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Move &quot;DSN=&quot; to sConnectionString<br />
&nbsp; &nbsp; &nbsp; &nbsp; Append sConnectionString sDSN &quot;;UID=&quot; sUserName &quot;;PWD=&quot; sPassword&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; Append sConnectionString &quot;;DATABASE=&quot; sDSN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psDatabaseConnection sReportId to sConnectionString<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psDatabaseName sReportId to sDSN<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get SubReportCount sReportId to iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; Decrement iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; For iSubReport from 0 to iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get SubReportId sReportId iSubReport to sSubReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send ChangeODBCDataSource sSubReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End_Procedure<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Procedure OnInitializeReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; Integer eOutputDeviceMode<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Forward Send OnInitializeReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psReportId to sReportId<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send ChangeODBCDataSource sReportId<br />
&nbsp; &nbsp; End_Procedure&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
End_Class</code><hr />
</div> What I expect when I run a report using this class is that the database connection will be changed to what I defined it as in ChangeODBCDataSource.  It works great on my development machine.  However when I do a test deployment, I get an error saying that the user does not have select permission on the tables (the user does, I checked).  So I  did a test.  On my development machine I modified the ChangeODBCDataSource Procedure to:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">rocedure ChangeODBCDataSource String sReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sConnectionString sDSN sSubReportId sTest<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sUserName sPassword <br />
&nbsp; &nbsp; &nbsp; &nbsp; Integer iSubReports iSubReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psDatabaseConnection sReportId to sTest<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send Info_Box (sTest)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psDatabase of oLogin to sDSN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psUsername of oLogin to sUserName<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psPassword of oLogin to sPassword&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Move &quot;DSN=SRSTables;UID=shouldfail;PWD=bogus;DATABASE=SRSTables&quot; to sConnectionString&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psDatabaseConnection sReportId to sConnectionString<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psDatabaseName sReportId to sDSN<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get SubReportCount sReportId to iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; Decrement iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; For iSubReport from 0 to iSubReports<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get SubReportId sReportId iSubReport to sSubReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send ChangeODBCDataSource sSubReportId<br />
&nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get psDatabaseConnection sReportId to sTest<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send Info_Box (sTest)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End_Procedure</code><hr />
</div> I am thinking that I should get a select permission denied error since the user shouldfail does not have access to my database.  Yet, it works.  It seems like the connection string is not really getting set.  What am I doing wrong?</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>jcushing</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50678-Changing-the-database-connection</guid>
		</item>
		<item>
			<title>Misc function request</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50676-Misc-function-request&amp;goto=newpost</link>
			<pubDate>Fri, 31 May 2013 14:36:13 GMT</pubDate>
			<description>Can you guys add IsFlagIn() ? 
I actually use that in some reports to determine if something should be printed or not.</description>
			<content:encoded><![CDATA[<div>Can you guys add IsFlagIn() ?<br />
I actually use that in some reports to determine if something should be printed or not.</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Mark Rutherford</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50676-Misc-function-request</guid>
		</item>
		<item>
			<title>VRW 3.0 Alpha II issues</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50661-VRW-3.0-Alpha-II-issues&amp;goto=newpost</link>
			<pubDate>Thu, 30 May 2013 10:12:06 GMT</pubDate>
			<description><![CDATA[Hi Guys 
 
I've found some issues with the new VRW 3.0.0.9313 Alpha II; 
 
1. The Section option 'Print at bottom of page' does not work 
 
2. Print...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys<br />
<br />
I've found some issues with the new VRW 3.0.0.9313 Alpha II;<br />
<br />
1. The Section option 'Print at bottom of page' does not work<br />
<br />
2. Print dialog from preview, click on Page Range; Current page: The cursor goes in a spin and will only come back to normal when activated another windows program, then clicking back in the printer dialog.<br />
<br />
3. Export to PDF: I have a nice report A4, two pages per record (double sided letter style), 240 pages. All looks good on screen and printing (A4). The produced PDF however is 8.27 x 11.69 which is fine I think, but the content is halved in size (could this be due to the two pages per record?!?)<br />
<br />
4. When pasting text (eg from notepad) into a Text object, weird focus handling is happening (should be really easy to reproduce)<br />
<br />
5. I added in the New report wizard, only one field. Then using the field explorer i added many more. When I then used the Filter Expert, only the one field was offered as a report field.<br />
<br />
6. I had a Filter expert and a Filter function. I thought they would complement each other, but if there is a filter in the expert, it completely ignores the filter function.<br />
<br />
Hope this is helpful.<br />
<br />
Cheers<br />
Marco</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Marco</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50661-VRW-3.0-Alpha-II-issues</guid>
		</item>
		<item>
			<title>printing to printer without dialog</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50654-printing-to-printer-without-dialog&amp;goto=newpost</link>
			<pubDate>Wed, 29 May 2013 20:23:05 GMT</pubDate>
			<description>Good Morning. 
 
I cannot figure out why this does not work: 
 
 
Code: 
--------- 
Procedure RunStatsAllReport Integer iShowAll String sDateRange...</description>
			<content:encoded><![CDATA[<div>Good Morning.<br />
<br />
I cannot figure out why this does not work:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Procedure RunStatsAllReport Integer iShowAll String sDateRange Boolean bPrintToScreen Variant [ ] [ ] vAllStats<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sReportID<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get OpenReport to sReportID<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psFunction sReportID 'DateRange' to (&quot;return '&quot;+sDateRange+&quot;'&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send TableData sReportID 0 vAllStats<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; If (bPrintToScreen) Send DisplayReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set peOutputDestination to PRINT_TO_PRINTER_NO_DIALOG<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send PrintReport 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End_Procedure</code><hr />
</div> <br />
For some reason, I still get the printer dialog when I print.  I don't understand why.<br />
<br />
Any help would be appreciated.  Thanks!</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>jcushing</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50654-printing-to-printer-without-dialog</guid>
		</item>
		<item>
			<title>printing to printer without dialog</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50652-printing-to-printer-without-dialog&amp;goto=newpost</link>
			<pubDate>Wed, 29 May 2013 15:59:00 GMT</pubDate>
			<description>Sorry....thought I was in Visual report writer..... 
 
Good Morning. 
 
I cannot figure out why this does not work: 
 
 
Code: 
--------- 
Procedure...</description>
			<content:encoded><![CDATA[<div>Sorry....thought I was in Visual report writer.....<br />
<br />
Good Morning.<br />
<br />
I cannot figure out why this does not work:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Procedure RunStatsAllReport Integer iShowAll String sDateRange Boolean bPrintToScreen Variant [ ] [ ] vAllStats<br />
&nbsp; &nbsp; &nbsp; &nbsp; String sReportID<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Get OpenReport to sReportID<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set psFunction sReportID 'DateRange' to (&quot;return '&quot;+sDateRange+&quot;'&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Send TableData sReportID 0 vAllStats<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; If (bPrintToScreen) Send DisplayReport<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set peOutputDestination to PRINT_TO_PRINTER_NO_DIALOG<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send PrintReport 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; End<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End_Procedure</code><hr />
</div> <br />
For some reason, I still get the printer dialog when I print.  I don't understand why.<br />
<br />
Any help would be appreciated.  Thanks!</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>jcushing</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50652-printing-to-printer-without-dialog</guid>
		</item>
		<item>
			<title>frequent crashes</title>
			<link>http://support.dataaccess.com/Forums/showthread.php?50630-frequent-crashes&amp;goto=newpost</link>
			<pubDate>Fri, 24 May 2013 05:08:51 GMT</pubDate>
			<description>Been working with VRW on my home and work machines for well over a week. 
Using 2.1 and 3.0 alpha 
 
These apps are crashy. 
I can get 2.1 to crash...</description>
			<content:encoded><![CDATA[<div>Been working with VRW on my home and work machines for well over a week.<br />
Using 2.1 and 3.0 alpha<br />
<br />
These apps are crashy.<br />
I can get 2.1 to crash just my moving fields on the report at times.<br />
All I get is the logged event with the following and another event saying that it's uploaded the data to microsoft to check for a solution.<br />
Work machine: Windows 7 pro<br />
Home: Windows 7 ultimate<br />
Both are 64 bit and both crash in very similar ways... and its seemingly random.<br />
I have lost a few reports to this so it's kinda annoying now.<br />
<br />
What to do?<br />
<br />
This is what 2.1 does... and it's just happened 5 times in a 10 minute period making me a bit peeved :mad:<br />
<br />
Faulting application name: Visual Report Writer 2012 Developer Edition.exe, version: 2.1.0.8740, time stamp: 0x503c598c<br />
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f<br />
Exception code: 0xc0000005<br />
Fault offset: 0x0002e3be<br />
Faulting process id: 0x1178<br />
Faulting application start time: 0x01ce583b507bf163<br />
Faulting application path: C:\Program Files (x86)\Visual Report Writer 2012 Developer Edition - 2.1\Visual Report Writer 2012 Developer Edition.exe<br />
Faulting module path: C:\Windows\SysWOW64\ntdll.dll<br />
Report Id: fab05adc-c42e-11e2-a66d-842b2b955e29</div>

 ]]></content:encoded>
			<category domain="http://support.dataaccess.com/Forums/forumdisplay.php?31-Visual-Report-Writer">Visual Report Writer</category>
			<dc:creator>Mark Rutherford</dc:creator>
			<guid isPermaLink="true">http://support.dataaccess.com/Forums/showthread.php?50630-frequent-crashes</guid>
		</item>
	</channel>
</rss>
