Uwe Habermann Venelina Jordanova Converting reports to Silverswitch and running VFP reports in Silverswitch.

Slides:



Advertisements
Similar presentations
Migration of a VFP application into a Silverswitch solution
Advertisements

Upon completion of this unit, you should be able to:
Uwe Habermann Venelina Jordanova Migrating VFP forms with the free Silverlight Wizard of the dFPUG.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Uwe Habermann Venelina Jordanova Programming VFP Code in the front-end of Silverswitch applications.
Uwe Habermann Venelina Jordanova Conversion of a VFX application into a Silverswitch solution.
Copyright © 2012 Pearson Education, Inc. Chapter 2 Introduction to Visual C#
Creating web service (and client application) with Visual Studio 2008 Create web service project New project->web->ASP.NET web service application (with.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Visual Extend 8.0 Rapid Application Development with VFX 8.0 Venelina Jordanova, Uwe Habermann
How XSL Formatter works Operation System Requirements How to format GUI for operating on Windows screen Application Integration Interface.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 Windows Printing. 2 Objectives You will be able to Output text and graphics to a printer. Print multipage documents. Use the standard Windows print.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
LATTICE TECHNOLOGY, INC. For Version 2.0 and later iXVL Publisher Tutorial For Version 2.0 and later.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Session 08: Architecture Controllers or Managers Graphical User Interface (GUI) FEN AK - IT Softwarekonstruktion.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Dr Dat Tran - Week 4 Lecture Notes 1 ToolStrip Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences &
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Uwe Habermann Venelina Jordanova Usage of VFP code in the back- end of Silverswitch applications.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Working with GridView Control: Adding Columns. Adding Buttons to a Bound GridView: 1. Drag the WebProduct table from Data connection to a page 2. Demo.
Windows Programming Using C# Printing, Documentation, & Deployment.
BIL528 – Bilgisayar Programlama II Introduction 1.
Introduction to Windows Programming
Uwe Habermann Venelina Jordanova Extending a Silverlight application with a webcam and multi-touch.
Chapter 2 Learning Photoshop Basics. Chapter Lessons Use organizational and management features Use the Layers and History panel Learn about Photoshop.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Select (drop-down list) Inputs. Insert/Form/List Menu.
Reports in NetBox 3 John L. Moss. Overview  As-built reports  Run for all nodes or a selected node  Print and place a copy in the NetBox enclosure.
Module 4: Creating a Web Application with Web Forms
© 2011 Delmar, Cengage Learning Chapter 2 Learning Photoshop Basics.
1 Printing a Document. 2 Objectives You will be able to print a real multipage document.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
Graphical User Interface Components Version 1.1. Obectives Students should understand how to use these basic Form components to create a Graphical User.
Venelina Jordanova, Uwe Habermann Visual Extend 9.0 Rapid Application Development.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
1 Windows Forms II Chapter RadioButton / GroupBox Controls Used to solicit a multiple choice input. Radio buttons work as a group. Selecting one.
.Net training In gandhinagar 16/10/2016.
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
Procedure 1 Click(left) [Devices and Printers] [Refer to User Guide: p.44 for detailed explanations.]
How to Apply PDF in Flipbook on Website. Description If you are finding solution for applying PDF in flipbook mode on website, and adding multimedia items.
Dive Into® Visual Basic 2010 Express
Computing with C# and the .NET Framework
Chapter 9 Programming Based on Events
Computing with C# and the .NET Framework
Chapter 2 – Introduction to the Visual Studio .NET IDE
Section 17.1 Section 17.2 Add an audio file using HTML
Visual programming Chapter 1: Introduction
Introduction to JavaScript
Updating Your Section’s Website
Predefined Dialog Boxes
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
Module 10: Creating a Web Application with Web Forms
Programming with Microsoft Visual Basic 2008 Fourth Edition
Introduction to JavaScript
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Uwe Habermann Venelina Jordanova Converting reports to Silverswitch and running VFP reports in Silverswitch

Silverlight Printing API * Similar to Reportbehavior 90 in VFP * Whole page gets printed as an image * Resolution 600 dpi * Page description in XAML

Silverlight Printing API * Example * Drag Button from Visual Studio Toolbox * Add event handler to Click event

Silverlight Printing API * Class PrintDocument using System.Windows.Printing; PrintDocument PrintObject = new PrintDocument(); PrintObject.Print("my print job");

Silverlight Printing API PrintObject.PrintPage += new System.EventHandler ( PrintObject_PrintPage); void PrintObject_PrintPage(object sender, PrintPageEventArgs e) { e.PageVisual = this.LayoutRoot; }

Silverlight Printing API * Print must be started by a user interaction * Printer selection dialog is shown in any case * So always similar to … TO PRINTER PROMPT * Migration of VFP reports possible

Silverswitch reports * ProductsTemplate.frx * Migrated to: * ProductTemplate.xaml * DataGrid reports

FRX with VFP COM server * Print processing at the server side * FRX execution in VFP COM server * Creation of a PDF file * Using reportlistener * Create PDF with freeware DLL Libhpdf.dll

FRX with VFP COM server * PDF output at the client side * Output in text mode like Reportbehavior 80 or as image like Reportbehavior 90

FRX with VFP COM server * VFP COM server must be EXE file * DLL does not work!

FRX with VFP COM server * Registration at target server * ComPdfCreator.exe /regserver * Un- Registration at target server * ComPdfCreator.exe /unregserver

FRX with VFP COM server * Bericht should work autonomously * Tables in dataenvironment * Private data session

FRX with VFP COM server * Function returns PDF file name

FRX with VFP COM server * Call from ActionButton Name="vfxCreatePDFActionButton" ProcedureName="cexample.createpdf" ProcedureParameter="customers.frx" OperationName="CreatePDFFromFRX" OperationResultLoaded= "vfxCreatePDFActionButton_ OperationResultLoaded"

FRX with VFP COM server * Determine URL of running application private void vfxCreatePDFActionButton_OperationResultLoaded (object sender, EventArgs e) { string applicationUrl = string.Format("{0}/", Application.Current.Host.Source.AbsoluteUri. Replace("/ClientBin/VfxLoader.xap", ""));

FRX with VFP COM server * Create URL of PDF file string pdfPageURL = applicationUrl + "UploadedFiles/" + vfxCreatePDFActionButton.OperationResult.result;

FRX with VFP COM server * Open PDF in new browser window System.Windows.Browser.HtmlPage.Window.Navigate( new Uri(pdfPageURL, UriKind.RelativeOrAbsolute), "_blank", "toolbar=no, location=no, status=no, menubar=no, resizable=yes"); }

Comparison SilverlightFRX ImageXX TextX * Silverlight * 600 DPI * Text cannot be copied * FRX * Output in text mode like Reportbehavior 80 or as image like Reportbehavior 90

Any questions?

Thank you very much and have fun with Silverswitch Venelina & Uwe