XQSharp Simple XSLT2 Transform
Jul 12, 2011I am tying to get xslt2 transformation using XQSharp, but i get an exception when trying to call ApplyTemplates.[code]
View 1 RepliesI am tying to get xslt2 transformation using XQSharp, but i get an exception when trying to call ApplyTemplates.[code]
View 1 RepliesWhat I am looking to do sounds really simple, but no where on the Internet so far have I found a way to do this in DotNet nor found a 3rd party component that does this either (without spending thousands on completely unnecessary features).Here goes: I have a jpeg of a floor tile (actual photo) that I create a checkerboard pattern with.In dotnet, it is easy to rotate and stitch photos together and save the final image as a jpeg.Next, I want to take that final picture and make it appear as if the "tiles" are laying on a floor for a generic "room scene". Basically adding a 3D perspective to make it appear as if it is actually in the room scene.Heres a website that is doing something similar with carpeting, however I need to do this in a WinForms application:Flor Website Basically, I need to create a 3D perspective of a jpeg, then save it as a new jpeg (then I can put an overlay of the generic room scene).
View 2 RepliesIs there anyone can post a simple code using vb,that start building a simple games ?
View 2 RepliesI need to transform bitmap images with their 4 corner points moved from one location to another.Any code that can run on Windows, C#/VB.NET preferably, even help how to use scriptable programs like Paint.NET or Photoshop would be accepted
View 4 RepliesFourier Transform for pictures in Visual Basic?
View 1 RepliesThere is a bug in my code somewhere. It has a form with 5 input fields and 5 output fields. The algorithm is supposed to do a forward DFT and then immediately do a reverse DFT on the same data - so the output values should be the same. However it returns garbage! as I cannot see where the bug is.
[Code]...
I am grabbing some XML from an API and I want to tranform it before I put it into my dataset. I can't quite piece it together. I am trying to work from the examples in the documentation, but all I find are examples with reading and writing to the filesystem and I am not interested in storing things in the filesystem for this.
I am trying to piece together (1) xmlReader.create(URL) -> (2) xslcompiledtransform(xmlreader,xmlwriter) -> (3) get xmlwriter it into an xmlreader -> (4)dataset.readxml(xmlreader).
I can't figure how to do (2) and (3). How do I initialize the xmlwriter properly and feed it to an xmlreader?
After several hours of browsing google, wanted to check with one of you experts. I have made a winform application to read data from PABX (telecom) device. My application is listening to a particular port and once data received it passes to the data_hander. Application is working fine. But I�m facing a issue in received data string. From PABX system, it sends start and stop bit within the text string. It sends chr(2) as start bit and chr(3) as stop bit. But when my application reads the incoming data stream as follows,
ReceivedData = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length).Trim(Microsoft.VisualBasic.ChrW(0))
It does not recognize the start and stop bit as it sends from PABX. It just replace chr(2) and chr(3) with space and shows rest of the string. The issue is, I just want to take the same string and forward to another application and it needs this start and stop bits as it is to read the string properly. Could somebody guide me how to read this characters from PABX system or at least include them to the received string within my application as send to the other application?
Using the FileHelpers library to do some great things in VB.NET. Parsing files with dynamic classes built from text file templates. One thing I can't find: A way to read in a single record and determine that it should result in the generation of two records.[code]Ideally in this next line I would like it to see certain conditions and be able to generate two records from a single source line. Dim PayRecords() As Object = engine. Transform Records(FromRecords)Alternately, if there is a way to implement the "ITransformable(Of ..." TransformTo() and have it return multiple records, I could put the logic in the dynamic class definition TransformTo() method.[code]
View 1 RepliesQuestion: I have data that I retrieve from a database, which looks like this: Now I need to transform it to the below format, in order to be able to draw a piechart. In ReportingService, there is the Matrix control to achieve this, but what can I use to achieve the same in ordinary C#, in order to render it to a PieChart image ? Note that the number of buildings as well as the usage-types is variable and not known ahead of time.
[Code]...
how to transform my textboxes to excel spead sheet within my programe
View 15 RepliesI do have third party application which produce it�s reports in PDF format. Those reports are having images and different kind of alignments in the pages. So I need a code or guidance to make an application to transform the exact appearance of the PDF file in to Excel. My Issue is the PDF does not have table kind of thing to identify by regular pdf to excel conversions.
View 3 RepliesI am a beginner of VB and i have no idea how to work on it.
View 5 RepliesHow can I transform this code to a function (anyone can do it for me?)? Otherwise I have to use this long code again and again..
[Code]...
Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:
Browsers:
Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click
'Load Action
Dim SavedEmailObj As Storage
[code].....
I have this code:
Public Class Transform
Dim inputFile As IO.StringReader ' Object variable
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ofdOpenFile.FileOk
[code]....
And I am getting these errors:
'Private Sub Transform_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures. Line 15
'strOutputPath' is not declared. It may be inaccessible due to its protection level. Line 51
Type 'XslCompiledTransform' is not defined. Line 83
I'm using XamlWriter, XML Transform (with XSLCompiledTransform), and XamlReader to create deep copies of a user control with multiple user controls and lots of inheritance.
I have it working and am using it in my Print and Print Preview logic. The problem is that it's SLOW and I need to speed it up. Currently when the user selects Print Preview it takes about three seconds for the view to display. I need to reduce this to less than one second!
[Code]...
I have 2 consecutive images from a camera and I want to estimate the change in camera pose:
I calculate the optical flow:
Const MAXFEATURES As Integer = 100
imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp")
imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp")
grayA = imgA.Convert(Of Gray, Byte)()
[Code]...
How do I calculate the new position and lookat?
If I'm doing this all wrong or if there's a better method,
how do i recieve webcam pics and transform each to a string ?
View 18 RepliesI need to copy an array to a linked list OR transform the array in a linked list.How this can be done in .NET (C# or VB)?
View 3 Repliesi need to create a function for transforming an xml document using xslt. I am able to copy the document using xsl:copy-of, however it's not copying the root of the source xml document. As shown below, the root of the xml should be <List xsi:noNamespaceSchemaLocation ~>: [Code]. My IDE is Visual Basic .Net 2008. I need to reproduce the xml file with the SName attributes sorted in ascending order.
View 3 Repliesi have a small program with random generator when i try to transfer the textboxes to excel i have problem?
View 5 Replieshow can i transform collection of textboxes to integer
View 11 RepliesHow to write a program to transfrom DDMM.SS (2218.3118 DDMM.SSSS) to Radian mode, which 2218.3118 is export from the GPS reciever.
dd.mm.ss -> dd.mm -> Rad
22'18'31.18" = 22.3086' = 0.38936Rad
2218.3118 (DDMM.SSSS) to 22'18'31.18" (DD.MM.SS) to 22'3087' (DD.MM) to 0.38936 (Rad)
Is there any function (VB.NET or C#) that can transform an English word into its singular or to its plural form? I was thinking of having a database that contains all words in English as well as their plural form but I also think that it is stupid since that will be huge and besides there are rules in English on how to translate a word to its plural form, so why not create a function that does the transformation?
View 4 RepliesI'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML which is then displayed in a web browser controll on another form.
I thought I break it up into pieces so I decided to just create an XML file and an XSL stylesheet and read this into the web browser control but all I'm getting is <HTML></HTML>
[Code]...
Let's say, I have something like a table in the WebBrowser component, it's not actually a table, because the data organized in flash, but, it's organized like a table, it has like rows and columns. You can see more in the attached file. Can I transform this text organized as table into DataGridView or some another tool that serves as table. like_a_table.JPG
View 3 RepliesI am exporting data from vb.net to excel and it is dropping the leading zero when its displayed on excel. How can I avoid the dropping of leading zero? I read the solution of adding a single quote but it makes my excel sheet column ugly. Also users will complain if they see a single quote on zip code field.vb.net code
Response.AddHeader("content-disposition", attachment)
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
the stored procedure outputs XML and it is transformed by XSLT before it is displayed on EXCEL
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
[code]....
adding a single quote or manipulating excel sheet with column formatter (general/numbers ) etc. I don't want user to make any changes on excel to get the display properly when the excel is displayed from web page it should be all set with proper formatting. also we have no control over client excel software?
I have a class like this
Public Class Settings
Private _app_folder As String = ""
Public Property AppFolder() As String
[Code]...
But how can I edit "_settings.AppFolder" property to "readonly" ?
I am using SSIS and I need to transform a date. How can I transform a date in String format (e.g. 14/09/1980) to the same but in date format in VB.NET?
I would like the datetime format to insert it into a SQL database.