Aug 26, 2008

Procedure to export a text file with both comma and quote delimiters in Excel

Procedure to export a text file with both comma and quote delimiters in Excel

Procedure to export a text file with both comma and quote delimiters in Excel

Procedure to export a text file with both comma and quote delimiters in Excel

Exporting crystal report as PDF and sending via email as attachment - Filename Issue? : Crystal Reports for Visual Studio : Visual Studio : MSDN Forums

Exporting crystal report as PDF and sending via email as attachment - Filename Issue? : Crystal Reports for Visual Studio : Visual Studio : MSDN Forums: "Dim repdoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

Dim diskOpts As New CrystalDecisions.Shared.DiskFileDestinationOptions()

Dim ExpOpts As CrystalDecisions.Shared.ExportOptions

Dim MailOpts As New CrystalDecisions.Shared.MicrosoftMailDestinationOptions()

repdoc = Me.CrystalReport11

repdoc.Load('C:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplication3\CrystalReport1.rpt')

ExpOpts = repdoc.ExportOptions

With ExpOpts

.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.MicrosoftMail

.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat

End With

With MailOpts

.MailMessage = 'Message'

.MailToList = 'enter email adress here'

.MailSubject = 'Attached is a PDF file - .net Export test '

End With

ExpOpts.DestinationOptions = MailOpts

Try

repdoc.Export()

Catch err As Exception

MessageBox.Show(err.ToString())

End Try"

Crystal Report question : Crystal Reports for Visual Studio : Visual Studio : MSDN Forums

Crystal Report question : Crystal Reports for Visual Studio : Visual Studio : MSDN Forums

Windows Drivers Downloads

Windows Drivers Downloads:dlls download

Crystalreport Tutorials' Sample Code Directory

Tutorials' Sample Code Directory

In this online help, the tutorials provide detailed step procedures that guide you through the completion of complex tasks. The tutorials are also available as completed sample code. See Tutorials.

If you have installed Crystal Reports with the default settings and file paths, sample code is in the directories shown below.

Crystal Reports version
Path to tutorials' sample code
Crystal Reports 11
C:\Program Files\Business Objects\Crystal Reports 11\Developer Files\Help\En\CR_NET_SDK_Tutorial_Sample_Code.zip
Crystal Reports for Visual Studio 2005
C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\Samples\en\Code\TutorialSampleCodeProjects.msi
Crystal Reports Basic for Visual Studio 2008
C:\Program Files\Microsoft Visual Studio 9.0\Crystal Reports\Samples\En\Code\

Aug 14, 2008

PZ10! Jokes - Technical fault

PZ10! Jokes - Jokes Site

How to search a directory and getting the directory path to connection string : c#

private void ResetConnectionString()
        {
            string dbDir = this.GetDBDirectory()+  @"\JSNorthWind.MDB";
            this.nWindConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dbDir + ";";

        }
        private string GetDBDirectory()
        {
            System.IO.DirectoryInfo currentDirectory = new System.IO.DirectoryInfo(Application.ExecutablePath).Parent;
            
            while (currentDirectory!=null)
            {
                System.IO.DirectoryInfo[] childDirectories = currentDirectory.GetDirectories();
                foreach(System.IO.DirectoryInfo childDir in childDirectories)
                {
                    if(childDir.Name=="Data")
                    {
                        return childDir.FullName;
                    }
                }
                currentDirectory = currentDirectory.Parent;
            }
            return "";
        }

Send instant messages to your online friends http://uk.messenger.yahoo.com