Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

memoboy

@memoboy
About
Posts
14
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • visio org chart shapes are not well formated on its position by using VS.Net
    M memoboy

    I’m working on creating a Visio 2003 organization chart over .net, I have been code it by using VB.Net 2005. What I’m trying to do is to retrieve the organization chart hierarchical from the database and store it as an html web page. I have been used the organization chart wizard for creating the chart shapes and I used VisSaveAsWeb object to save the chart as a web page. My problem is that the org chart shapes doesn’t formatted correctly after resizing the shapes to fit with it text. Is there any one know how could I control the shape position to relocate it into it right place and this is my peace of code Code Block 'On Error GoTo OrgDoItErrHandler Dim objVisio As Visio.Application Dim objAddOn As Visio.Addon Dim vsoSaveAsWeb As VisSaveAsWeb Dim vsoWebSettings As VisWebPageSettings Dim strCommand As String Dim i As Integer Dim pagObj As Visio.Page Dim shpObj As Visio.Shape Dim celObjHeight As Visio.Cell Dim celObjWidth As Visio.Cell strCommand = "/DATASOURCE=SN,TABLE=" _ & "~" & ",DBQUALIFIER=~" _ & " /NAME-FIELD=~" _ & " /UNIQUEID-FIELD=~" _ & " /MANAGER-FIELD=~" _ & " /DISPLAY-FIELDS=~" _ & " /CUSTOM-PROPERTY-FIELDS=~" _ & " /SHAPE-FIELD=~" objVisio = New Visio.InvisibleApp objAddOn = objVisio.Addons.ItemU("OrgCWiz") 'Run the add-on (errors are handled by the add-on) On Error Resume Next 'Break up the string Dim strCommandPart As String Dim strCommandLeft As String strCommandLeft = strCommand objAddOn.Run("/S-INIT") While (Len(strCommandLeft) > 0) strCommandPart = Microsoft.VisualBasic.Left(strCommandLeft, MAX_ARGSTRING_LENGTH) strCommandLeft = Mid(strCommandLeft, Len(strCommandPart) + 1) objAddOn.Run("/S-ARGSTR " + strCommandPart) End While objAddOn.Run("/S-RUN " + strCommandLeft) ' Get a VisSaveAsWeb object that ' represents a new Web page project. vsoSaveAsWeb = objVisio.Application.SaveAsWebObject ' Get a VisWebPageSettings object. vsoWebSettings = vsoSaveAsWeb.WebPageSettings ' Configure preferences. With vsoWebSettings .StartPage = 1 .EndPage = 2 .QuietMode = True .TargetPath = "D:\Balaji\Test.htm" .SilentMode = True End With pagObj = objVisio.ActivePage ' I’m trying here to resize the shaps to fet with the texts that inside it For i = 0 To pagObj.Shapes.Count If pagObj.Shapes.Item

    Visual Basic help csharp html database

  • cannt set Atals:UpdatePanel inside DataList Control
    M memoboy

    Dear All i have the following problem, i try to place Control inside DataList Control but i always get the following error once i run the application: "The UpdatePanel 'UpdatePanel1' was not present when the page's InitComplete event was raised. This is usually caused when an UpdatePanel is placed inside a template." i tryed to solve it in several wayes but it never worked? is there any one know what should i do about it?

    ASP.NET help question

  • i have a problem with HyperLinkField in GridView
    M memoboy

    i have been write a function that provide a data gridView with data and create it with AJAX.Net liprary. but the DataNavigateUrlFields never worked with me and i dont know why!!!!!!!! the code it [Ajax.AjaxMethod] public string Search() { SqlDataSource DS = new SqlDataSource(); DS.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; DS.SelectCommand = "Select ID, Name From Table1"; GridView GV = new GridView(); GV.DataSource = DS; HyperLinkField HLF = new HyperLinkField(); HLF.Text = "Select this"; GV.Columns.Add(HLF); HLF.DataNavigateUrlFormatString = "WebSite2.aspx?FialdNum={0}"; String[] Fialds = new String[] {"ID"}; HLF.DataNavigateUrlFields = Fialds; GV.DataBind(); StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); GV.RenderControl(hw); return sw.ToString(); } and i dont know what is the problem with it thanks!

    ASP.NET question csharp help

  • need a help with ASP.Net 2.0 Callback future
    M memoboy

    i used ICallbackEventHandler interface to run the callback future with my code, and it work with a simple example like one button refresh one GridView, but what i realy need and trying to do is to have two button and two different controls like a gridView and comboBox Control and each one of it refreshed by one button :confused:

    ASP.NET csharp asp-net help tutorial

  • Crystal Report deployment problem
    M memoboy

    i traid to merg the CrystalDecisions.* DLL files in the deployment project and add it asemply files. but i have the following exception "The type initializer 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed with HRESULT: 0x80040154(Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)))." so i dont know if i can do anything else to solve this problem

    C# csharp sysadmin beta-testing help tutorial

  • Crystal Report deployment problem
    M memoboy

    i have a problem with deployment a crystal report in windows applection, the problem is whin i deploy the applection and run it it give me the following exception " cannt find CrystalDecisions.* DLL files" i need to know how to deploy the crystal report in the client machine:confused:, i use V.S.net 2005 beta 2 and i face the same problem in V.S.Net 2003:(

    C# csharp sysadmin beta-testing help tutorial

  • Disabling Print Screen
    M memoboy

    you have been mentioned somthing about redirecting the hot key, i have been searched for this solution but i didnt find any thing help full for how to do that with c#. it's ok for me to prevent the people from doing it at least in the easy way, so here i have a new Q how could i use the registry hot key with c# thanks for help, a little help do alot i try to learn programming what ever i had i feal that i did'nt get anything

    C# csharp help

  • Disabling Print Screen
    M memoboy

    i have a problem i need to diasble the print screen in my application. i have been program my application by using C# language and i need to prevent any user from copying any desplayed image on it. i have been search alot but i couldnt find any. i try to learn programming what ever i had i feal that i did'nt get anything

    C# csharp help

  • BitWise operation Problem
    M memoboy

    thanks you for your answer but i found a problem onit it give me a error message which say that the int cannt be converted to byte where is the problem here i try to solve it :confused: thanks again

    C# help

  • BitWise operation Problem
    M memoboy

    My problem is that i trye to move some bit's from one byte in spacific position to another byte in the same position EX. Byte :A = 11111111 Byte :B = 00000000 let us say that i want to move the last 4 bits in A to the last 4 bits in B my result should be A = 11111111 B = 00001111 :sigh: and thatnks verey much

    C# help

  • JPEG image processing with C#
    M memoboy

    you what are you saying about the steganography and what corinna john did about it she provide a very wonderful work ,I have been read all of it work and I like it very much but in my project I use another algorithm which allow for me to hide a huge mountain of bit's in each pixel without insert any noise on the image it self ,but as I have seen in corinna work the passward control the a mount of bit's that you can hide in the image ,my algorithm allow for me to hide in all the pixel. And that is a very big different here. i try to learn programming what ever i had i feal that i did'nt get anything

    C# help csharp question learning

  • JPEG image processing with C#
    M memoboy

    hi thanks you very much for answering me. I will explain my problem , and why I want to do this bizarre ;) thing ,this problem come from my project where I try to hide some kind of data in all the byte’s in the image pixel’s without insert any noise for the image colour and it worked with me in the bitmap format (RGB) ,but I try now to drive my algorithm to work on the jpeg format either but I found a lot of problem on this that because. I couldn’t understand for this time how the jpeg compressed ,and how it store each compressed pixel in the jpeg file ,and how could I get this stored pixel and returned it into RGB format and work my algorithm with it and then return it into JPEG format and store it that only if that could be possible ,you can see that my problem come from ,that I still try to understand the JPEG image format but I tried very much to solve this problem but nothing helped me because I couldn’t find a good resource about this subject. So as you said “If you're going to edit a jpg, jpg has lossy compression, so some detail is lost when you save it again “ and I want for this to be happen because any bit I loss it could cause for me a disaster. I don’t ask here to tell me if there is any ready library can help me to do this I just want to know does that possible to be happen or not? And if it can be , how?? I believe that all the programming is just a game nothing more or less. Thanks again for every one give me a suggestion that can help me to solve this bizarre problem. i try to learn programming what ever i had i feal that i did'nt get anything

    C# help csharp question learning

  • JPEG image processing with C#
    M memoboy

    ok but as i know if i open the image and modefy it bit's in bitmabe formate and then i restore it as jpeg foramte there will be a lose in bit's value my project need from me to keep some spacifice bit's in each pixel with keeping it in it origonal form without losing it there is any way for that memo

    C# help csharp question learning

  • JPEG image processing with C#
    M memoboy

    Hi every one I need a help in JPEG image processing with C# language ,I need to know how can I read the jpeg file bit’s in the stream wile it compressed and get from it each pixel value in jpeg pixel format and then convert this pixel from jpeg format into RGB format and return it for the jpeg format ,if that is possible. I really need a help on this I search a lot for this but nothing I get ,if any one have any idea or resource about this problem pleas tell me about it ,if you can. memo

    C# help csharp question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups